update for new scheduling query
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 18 Nov 2011 17:00:28 +0000 (18:00 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 18 Nov 2011 17:00:28 +0000 (18:00 +0100)
gst/asfdemux/gstasfdemux.c
gst/realmedia/rademux.c
gst/realmedia/rmdemux.c

index 9b1969f..e12827a 100644 (file)
@@ -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;
index 20c5526..844e7f4 100644 (file)
@@ -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;
index 05044bd..d7cf0fb 100644 (file)
@@ -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;