summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-05-04 11:23:16 +0200
committerTim-Philipp Müller <tim@centricular.com>2016-02-17 14:58:01 +0000
commitff51629c9aba8dac99c393512776e57719081879 (patch)
treea465e31d80bf4404f0849e9f2f0a83c74f284782
parent89b172b3ed43a5e43dd12b70611e3fd627a35b4a (diff)
downloadgstreamer-plugins-good-ff51629c9aba8dac99c393512776e57719081879.tar.gz
opusdepay: Set multistream=FALSE on the Opus caps
The RTP Opus mapping only allows mono/stereo, and not multistream Opus streams.
-rw-r--r--gst/rtp/gstrtpopusdepay.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/rtp/gstrtpopusdepay.c b/gst/rtp/gstrtpopusdepay.c
index f58259ff8..af3237beb 100644
--- a/gst/rtp/gstrtpopusdepay.c
+++ b/gst/rtp/gstrtpopusdepay.c
@@ -46,7 +46,7 @@ static GstStaticPadTemplate gst_rtp_opus_depay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("audio/x-opus")
+ GST_STATIC_CAPS ("audio/x-opus, multistream = (boolean) FALSE")
);
static GstBuffer *gst_rtp_opus_depay_process (GstRTPBaseDepayload * depayload,
@@ -96,7 +96,9 @@ gst_rtp_opus_depay_setcaps (GstRTPBaseDepayload * depayload, GstCaps * caps)
gboolean ret;
const gchar *sprop_stereo, *sprop_maxcapturerate;
- srccaps = gst_caps_new_empty_simple ("audio/x-opus");
+ srccaps =
+ gst_caps_new_simple ("audio/x-opus", "multistream", G_TYPE_BOOLEAN, FALSE,
+ NULL);
s = gst_caps_get_structure (caps, 0);
if ((sprop_stereo = gst_structure_get_string (s, "sprop-stereo"))) {