mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +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/6225>
This commit is contained in:
parent
f53dbb28b2
commit
e2167867d5
1 changed files with 2 additions and 7 deletions
|
@ -9583,13 +9583,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);
|
||||
}
|
||||
* correctly. */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue