summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2023-01-03 18:55:24 -0500
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2023-01-12 18:48:35 -0500
commitf1cf4578118d3339379ca6f89df533539167c2fa (patch)
tree179fcaee45bc5a072c282655f0a9deb3e502b6f9
parentc52c66b575626c7ea76277831f53c81512ed33b2 (diff)
downloadgstreamer-f1cf4578118d3339379ca6f89df533539167c2fa.tar.gz
rtpopuspay: Leave original caps as-is
This should make it work if someone specifies stereo with MULTIOPUS somehow. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3674>
-rw-r--r--subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c b/subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c
index 4167949b06..8f9a43a528 100644
--- a/subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c
+++ b/subprojects/gst-plugins-good/gst/rtp/gstrtpopuspay.c
@@ -437,13 +437,11 @@ gst_rtp_opus_pay_getcaps (GstRTPBasePayload * payload,
GstCaps *caps2 = gst_caps_copy (caps);
gst_caps_set_simple (caps, "channels", G_TYPE_INT, 2, NULL);
- gst_caps_set_simple (caps2, "channels", G_TYPE_INT, 1, NULL);
caps = gst_caps_merge (caps, caps2);
} else if (!strcmp (stereo, "0")) {
GstCaps *caps2 = gst_caps_copy (caps);
gst_caps_set_simple (caps, "channels", G_TYPE_INT, 1, NULL);
- gst_caps_set_simple (caps2, "channels", G_TYPE_INT, 2, NULL);
caps = gst_caps_merge (caps, caps2);
}
}