summaryrefslogtreecommitdiff
path: root/plugins/elements/gsttypefindelement.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/elements/gsttypefindelement.c')
-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);