summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-11-18 18:00:28 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2011-11-18 18:00:28 +0100
commit8eca58a50ed1d649078ccab88d3d4968918bd9d1 (patch)
treeaee7f6a07b9e07011e56b60b9b401c38206efa03 /gst
parentdf3e30ed7e4e1af91dc60e145411267469a620b6 (diff)
update for new scheduling query
Diffstat (limited to 'gst')
-rw-r--r--gst/asfdemux/gstasfdemux.c3
-rw-r--r--gst/realmedia/rademux.c3
-rw-r--r--gst/realmedia/rmdemux.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c
index 9b1969f1..e12827a0 100644
--- a/gst/asfdemux/gstasfdemux.c
+++ b/gst/asfdemux/gstasfdemux.c
@@ -304,7 +304,8 @@ gst_asf_demux_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push;
}
- gst_query_parse_scheduling (query, &pull_mode, NULL, NULL, NULL, NULL, NULL);
+ pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
+ gst_query_unref (query);
if (!pull_mode)
goto activate_push;
diff --git a/gst/realmedia/rademux.c b/gst/realmedia/rademux.c
index 20c5526f..844e7f49 100644
--- a/gst/realmedia/rademux.c
+++ b/gst/realmedia/rademux.c
@@ -193,7 +193,8 @@ gst_real_audio_demux_sink_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push;
}
- gst_query_parse_scheduling (query, &pull_mode, NULL, NULL, NULL, NULL, NULL);
+ pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
+ gst_query_unref (query);
if (!pull_mode)
goto activate_push;
diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c
index 05044bda..d7cf0fbc 100644
--- a/gst/realmedia/rmdemux.c
+++ b/gst/realmedia/rmdemux.c
@@ -757,7 +757,8 @@ gst_rmdemux_sink_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push;
}
- gst_query_parse_scheduling (query, &pull_mode, NULL, NULL, NULL, NULL, NULL);
+ pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
+ gst_query_unref (query);
if (!pull_mode)
goto activate_push;