tsdemux: Set number of channels to 2 for dual mono Opus
authorSebastian Dröge <sebastian@centricular.com>
Tue, 18 Apr 2023 11:55:23 +0000 (14:55 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 18 Apr 2023 13:21:54 +0000 (14:21 +0100)
Instead of leaving it at 0, which will then cause caps creation to fail.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4446>

subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c

index 3ac82bd..17a7aaf 100644 (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;