From c7d92b6cf5c149f886490909a677c526ae4b734a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 4 May 2015 11:23:16 +0200 Subject: [PATCH] opusdepay: Set multistream=FALSE on the Opus caps The RTP Opus mapping only allows mono/stereo, and not multistream Opus streams. --- ext/opus/gstrtpopusdepay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/opus/gstrtpopusdepay.c b/ext/opus/gstrtpopusdepay.c index f58259ff8a..af3237bebb 100644 --- a/ext/opus/gstrtpopusdepay.c +++ b/ext/opus/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"))) { -- 2.34.1