update for new scheduling query

This commit is contained in:
Wim Taymans 2011-11-18 18:00:28 +01:00
parent df3e30ed7e
commit 8eca58a50e
3 changed files with 6 additions and 3 deletions

View 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;

View 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;

View 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;