mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
matroskademux: tag disabled streams with FLAG_UNSELECT
So they're never picked as default, only by explicit user action. https://bugzilla.gnome.org/show_bug.cgi?id=690911
This commit is contained in:
parent
6e7b0d6061
commit
adc315978c
1 changed files with 3 additions and 0 deletions
|
@ -1512,6 +1512,9 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
|
||||||
stream_flags |= GST_STREAM_FLAG_SPARSE;
|
stream_flags |= GST_STREAM_FLAG_SPARSE;
|
||||||
if (context->flags & GST_MATROSKA_TRACK_DEFAULT)
|
if (context->flags & GST_MATROSKA_TRACK_DEFAULT)
|
||||||
stream_flags |= GST_STREAM_FLAG_SELECT;
|
stream_flags |= GST_STREAM_FLAG_SELECT;
|
||||||
|
else if (!(context->flags & GST_MATROSKA_TRACK_ENABLED))
|
||||||
|
stream_flags |= GST_STREAM_FLAG_UNSELECT;
|
||||||
|
|
||||||
gst_event_set_stream_flags (stream_start, stream_flags);
|
gst_event_set_stream_flags (stream_start, stream_flags);
|
||||||
gst_pad_push_event (context->pad, stream_start);
|
gst_pad_push_event (context->pad, stream_start);
|
||||||
gst_pad_set_caps (context->pad, context->caps);
|
gst_pad_set_caps (context->pad, context->caps);
|
||||||
|
|
Loading…
Reference in a new issue