summaryrefslogtreecommitdiff
path: root/plugins/elements
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-12-09 18:02:15 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-12-09 18:02:41 +0200
commitd284be350555d51e638405087924fd769d981c52 (patch)
tree7fa07207e2e78a0a4b956769bbfce6dc59299263 /plugins/elements
parent77af10a52127a81f73694bde6c82cc236e0eb0fe (diff)
typefind: Use gst_query_has_scheduling_mode_with_flags() convenience function
Diffstat (limited to 'plugins/elements')
-rw-r--r--plugins/elements/gsttypefindelement.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c
index a63dca7b4..2426051b3 100644
--- a/plugins/elements/gsttypefindelement.c
+++ b/plugins/elements/gsttypefindelement.c
@@ -1274,7 +1274,6 @@ gst_type_find_element_activate_sink (GstPad * pad, GstObject * parent)
{
GstQuery *query;
gboolean pull_mode;
- GstSchedulingFlags sched_flags;
query = gst_query_new_scheduling ();
@@ -1283,10 +1282,8 @@ gst_type_find_element_activate_sink (GstPad * pad, GstObject * parent)
goto typefind_push;
}
- gst_query_parse_scheduling (query, &sched_flags, NULL, NULL, NULL);
-
- pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL)
- && ((sched_flags & GST_SCHEDULING_FLAG_SEEKABLE) != 0);
+ pull_mode = gst_query_has_scheduling_mode_with_flags (query,
+ GST_PAD_MODE_PULL, GST_SCHEDULING_FLAG_SEEKABLE);
gst_query_unref (query);