mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
mxfdemux: Don't go into pull mode when the sequential flag is set
When the scheduling query results has GST_SCHEDULING_FLAG_SEQUENTIAL set in its flags don't go into pull mode to prevent over-eager seeking. https://bugzilla.gnome.org/show_bug.cgi?id=722934
This commit is contained in:
parent
68ce96a9e4
commit
f6da7ea8bb
1 changed files with 6 additions and 2 deletions
|
@ -3687,8 +3687,12 @@ gst_mxf_demux_sink_activate (GstPad * sinkpad, GstObject * parent)
|
|||
|
||||
if (gst_pad_peer_query (sinkpad, query)) {
|
||||
if (gst_query_has_scheduling_mode_with_flags (query,
|
||||
GST_PAD_MODE_PULL, GST_SCHEDULING_FLAG_SEEKABLE))
|
||||
mode = GST_PAD_MODE_PULL;
|
||||
GST_PAD_MODE_PULL, GST_SCHEDULING_FLAG_SEEKABLE)) {
|
||||
GstSchedulingFlags flags;
|
||||
gst_query_parse_scheduling (query, &flags, NULL, NULL, NULL);
|
||||
if (!(flags & GST_SCHEDULING_FLAG_SEQUENTIAL))
|
||||
mode = GST_PAD_MODE_PULL;
|
||||
}
|
||||
}
|
||||
gst_query_unref (query);
|
||||
|
||||
|
|
Loading…
Reference in a new issue