tsdemux: Set number of channels to 2 for dual mono Opus

Instead of leaving it at 0, which will then cause caps creation to fail.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4445>
This commit is contained in:
Sebastian Dröge 2023-04-18 14:55:23 +03:00
parent 63a4d8bb54
commit 6a0965cb8a

View file

@ -1546,6 +1546,7 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream,
channels = channel_config_code ? (channel_config_code & 0x0f) : 2;
if (channel_config_code == 0 || channel_config_code == 0x80) {
/* Dual Mono */
channels = 2;
mapping_family = 255;
if (channel_config_code == 0) {
stream_count = 1;