From 8eca58a50ed1d649078ccab88d3d4968918bd9d1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 18 Nov 2011 18:00:28 +0100 Subject: [PATCH] update for new scheduling query --- gst/asfdemux/gstasfdemux.c | 3 ++- gst/realmedia/rademux.c | 3 ++- gst/realmedia/rmdemux.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 9b1969f18d..e12827a0d8 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 20c5526f55..844e7f499d 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 05044bda56..d7cf0fbcce 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;