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:
Tim-Philipp Müller 2018-05-14 00:29:24 +01:00
parent 6e7b0d6061
commit adc315978c

View file

@ -1512,6 +1512,9 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
stream_flags |= GST_STREAM_FLAG_SPARSE;
if (context->flags & GST_MATROSKA_TRACK_DEFAULT)
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_pad_push_event (context->pad, stream_start);
gst_pad_set_caps (context->pad, context->caps);