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
@ -3687,8 +3687,12 @@ gst_mxf_demux_sink_activate (GstPad * sinkpad, GstObject * parent)
|
|||||||
|
|
||||||
if (gst_pad_peer_query (sinkpad, query)) {
|
if (gst_pad_peer_query (sinkpad, query)) {
|
||||||
if (gst_query_has_scheduling_mode_with_flags (query,
|
if (gst_query_has_scheduling_mode_with_flags (query,
|
||||||
GST_PAD_MODE_PULL, GST_SCHEDULING_FLAG_SEEKABLE))
|
GST_PAD_MODE_PULL, GST_SCHEDULING_FLAG_SEEKABLE)) {
|
||||||
mode = GST_PAD_MODE_PULL;
|
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);
|
gst_query_unref (query);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user