diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-10-12 13:57:23 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-10-12 13:57:23 +0200 |
commit | 93dfddbfa472e3521df8b3b2e04e67f849db6e15 (patch) | |
tree | f77480f68799946cb2a115ec48215efe6607886f /command/marks.cpp | |
parent | 2994e021ee44eea1c9443da897909c79cef0f963 (diff) | |
download | vdr-plugin-markad-93dfddbfa472e3521df8b3b2e04e67f849db6e15.tar.gz vdr-plugin-markad-93dfddbfa472e3521df8b3b2e04e67f849db6e15.tar.bz2 |
Changed detection of border/aspect/channel-changes
Diffstat (limited to 'command/marks.cpp')
-rw-r--r-- | command/marks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/command/marks.cpp b/command/marks.cpp index 8d433c4..a59840b 100644 --- a/command/marks.cpp +++ b/command/marks.cpp @@ -47,7 +47,7 @@ clMarks::~clMarks() if (indexfd!=-1) close(indexfd); } -int clMarks::Count(int Type) +int clMarks::Count(int Type, int Mask) { if (Type==0xFF) return count; @@ -57,7 +57,7 @@ int clMarks::Count(int Type) clMark *mark=first; while (mark) { - if (mark->type==Type) ret++; + if ((mark->type & Mask)==Type) ret++; mark=mark->Next(); } return ret; |