avdemux: only activate in pull mode if upstream is seekable

This commit is contained in:
Mark Nauwelaerts 2012-09-11 17:52:57 +02:00
parent a44c3aeed3
commit b9e32291a9

View file

@ -1702,7 +1702,8 @@ gst_ffmpegdemux_sink_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push;
}
pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
pull_mode = gst_query_has_scheduling_mode_with_flags (query,
GST_PAD_MODE_PULL, GST_SCHEDULING_FLAG_SEEKABLE);
gst_query_unref (query);
if (!pull_mode)