mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
qtdemux: Do not set channel-mask to zero
Leave it uninitialized, so that the downstream decoder will initialize it appropriately. Setting it to zero is wrong. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6288>
This commit is contained in:
parent
375d16a9fa
commit
a1d1c74be1
1 changed files with 2 additions and 7 deletions
|
@ -9030,13 +9030,8 @@ gst_qtdemux_configure_stream (GstQTDemux * qtdemux, QtDemuxStream * stream)
|
|||
if (CUR_STREAM (stream)->n_channels > 0)
|
||||
gst_caps_set_simple (CUR_STREAM (stream)->caps,
|
||||
"channels", G_TYPE_INT, CUR_STREAM (stream)->n_channels, NULL);
|
||||
if (CUR_STREAM (stream)->n_channels > 2) {
|
||||
/* FIXME: Need to parse the 'chan' atom to get channel layouts
|
||||
* correctly; this is just the minimum we can do - assume
|
||||
* we don't actually have any channel positions. */
|
||||
gst_caps_set_simple (CUR_STREAM (stream)->caps,
|
||||
"channel-mask", GST_TYPE_BITMASK, G_GUINT64_CONSTANT (0), NULL);
|
||||
}
|
||||
/* FIXME: Need to parse the 'chan' atom to get channel layouts
|
||||
* correctly. */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue