From 93dfddbfa472e3521df8b3b2e04e67f849db6e15 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Tue, 12 Oct 2010 13:57:23 +0200 Subject: Changed detection of border/aspect/channel-changes --- command/marks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'command/marks.cpp') 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; -- cgit v1.2.3