summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-04-18 14:55:23 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-05-06 22:48:06 +0000
commita74bf2a45eaabf4e1e01ed1888dcbe6150b6c8d1 (patch)
treeb819965380abcbdbde3007483eb077e74db771c3
parenteaa83829cee8cad4a90865c4fa795368c6ea4f76 (diff)
downloadgstreamer-a74bf2a45eaabf4e1e01ed1888dcbe6150b6c8d1.tar.gz
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>
-rw-r--r--subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c b/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c
index 6174850c57..e125381861 100644
--- a/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c
+++ b/subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c
@@ -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;