mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2368>
This commit is contained in:
parent
8fc20ad657
commit
fb9a116fc5
1 changed files with 1 additions and 1 deletions
|
@ -1178,7 +1178,7 @@ update_requested_selection (GstDecodebin3 * dbin)
|
||||||
for (i = 0; i < nb; i++) {
|
for (i = 0; i < nb; i++) {
|
||||||
GstStream *stream = gst_stream_collection_get_stream (collection, i);
|
GstStream *stream = gst_stream_collection_get_stream (collection, i);
|
||||||
GstStreamType curtype = gst_stream_get_stream_type (stream);
|
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);
|
const gchar *sid = gst_stream_get_stream_id (stream);
|
||||||
GST_DEBUG_OBJECT (dbin,
|
GST_DEBUG_OBJECT (dbin,
|
||||||
"Automatically selecting stream '%s' of type %s", sid,
|
"Automatically selecting stream '%s' of type %s", sid,
|
||||||
|
|
Loading…
Reference in a new issue