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/4565>
This commit is contained in:
Sebastian Dröge 2023-04-18 14:55:23 +03:00 committed by GStreamer Marge Bot
parent eaa83829ce
commit a74bf2a45e

View file

@ -1545,6 +1545,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;