ext, gst-libs: only activate in pull mode if upstream is seekable

This commit is contained in:
Mark Nauwelaerts 2012-09-11 17:36:36 +02:00
parent 5f4bd0a4e8
commit 899a809330
2 changed files with 4 additions and 2 deletions

View file

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

View file

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