update for new scheduling query

This commit is contained in:
Wim Taymans 2011-11-18 18:00:59 +01:00
parent c1b511f5db
commit 944a76904d

View file

@ -1703,7 +1703,8 @@ gst_ffmpegdemux_sink_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push; 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) if (!pull_mode)
goto activate_push; goto activate_push;