From: Edward Hervey Date: Tue, 3 May 2022 14:08:39 +0000 (+0200) Subject: playbin3: Don't use unknown types for default selection X-Git-Tag: 1.22.0~1681 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4be8b1b0a1e3be3efd58a880e81a29f53fe7cf54;p=platform%2Fupstream%2Fgstreamer.git playbin3: Don't use unknown types for default selection When creating a fallback default selection from a collection, don't attempt to use unknown stream types Part-of: --- diff --git a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c index f8a2ec4..d5cf44c 100644 --- a/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c @@ -1261,7 +1261,7 @@ update_requested_selection (GstDecodebin3 * dbin) for (i = 0; i < nb; i++) { GstStream *stream = gst_stream_collection_get_stream (collection, i); GstStreamType curtype = gst_stream_get_stream_type (stream); - if (!(used_types & curtype)) { + if (curtype != GST_STREAM_TYPE_UNKNOWN && !(used_types & curtype)) { const gchar *sid = gst_stream_get_stream_id (stream); GST_DEBUG_OBJECT (dbin, "Automatically selecting stream '%s' of type %s", sid,