From 54602c04f6e1769d825e2152c7f42150c4e7dad5 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sat, 1 Nov 2014 10:10:27 -0400 Subject: [PATCH] rtpopus: Use OPUS encoding name Both Firefox and Chrome uses OPUS as the encoding in their SDP. Adding this now defacto standard name remove the need for special case in SDP parsing code. https://bugzilla.gnome.org/show_bug.cgi?id=737810 --- ext/opus/gstrtpopusdepay.c | 2 +- ext/opus/gstrtpopuspay.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/opus/gstrtpopusdepay.c b/ext/opus/gstrtpopusdepay.c index da6d51eabc..6bcdd12627 100644 --- a/ext/opus/gstrtpopusdepay.c +++ b/ext/opus/gstrtpopusdepay.c @@ -39,7 +39,7 @@ GST_STATIC_PAD_TEMPLATE ("sink", "media = (string) \"audio\", " "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING "," "clock-rate = (int) 48000, " - "encoding-name = (string) \"X-GST-OPUS-DRAFT-SPITTKA-00\"") + "encoding-name = (string) { \"OPUS\", \"X-GST-OPUS-DRAFT-SPITTKA-00\" }") ); static GstStaticPadTemplate gst_rtp_opus_depay_src_template = diff --git a/ext/opus/gstrtpopuspay.c b/ext/opus/gstrtpopuspay.c index 69ad51ec6f..8cfd79def7 100644 --- a/ext/opus/gstrtpopuspay.c +++ b/ext/opus/gstrtpopuspay.c @@ -48,7 +48,7 @@ GST_STATIC_PAD_TEMPLATE ("src", "media = (string) \"audio\", " "payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", " "clock-rate = (int) 48000, " - "encoding-name = (string) \"X-GST-OPUS-DRAFT-SPITTKA-00\"") + "encoding-name = (string) { \"OPUS\", \"X-GST-OPUS-DRAFT-SPITTKA-00\" }") ); static gboolean gst_rtp_opus_pay_setcaps (GstRTPBasePayload * payload,