query: adjust test logic for scheduling mode with flagS

This commit is contained in:
Mark Nauwelaerts 2012-09-11 17:27:03 +02:00
parent d1567a82ac
commit 4af5e05309

View file

@ -2151,7 +2151,7 @@ gst_query_has_scheduling_mode_with_flags (GstQuery * query, GstPadMode mode,
gst_query_parse_scheduling (query, &sched_flags, NULL, NULL, NULL);
return ((flags & sched_flags) != 0) &&
return ((flags & sched_flags) == flags) &&
gst_query_has_scheduling_mode (query, mode);
}