summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2014-11-01 10:10:27 -0400
committerTim-Philipp Müller <tim@centricular.com>2016-02-17 14:58:01 +0000
commit9e4511edf4b20736ecafc137a6eaa11ddb638826 (patch)
treed8c2e8fb8f568de7a3a231640897a6870906f207
parentb310393916467e0a24d04c1372132773c371a2ed (diff)
downloadgstreamer-plugins-good-9e4511edf4b20736ecafc137a6eaa11ddb638826.tar.gz
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
-rw-r--r--gst/rtp/gstrtpopusdepay.c2
-rw-r--r--gst/rtp/gstrtpopuspay.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gst/rtp/gstrtpopusdepay.c b/gst/rtp/gstrtpopusdepay.c
index da6d51eab..6bcdd1262 100644
--- a/gst/rtp/gstrtpopusdepay.c
+++ b/gst/rtp/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/gst/rtp/gstrtpopuspay.c b/gst/rtp/gstrtpopuspay.c
index 69ad51ec6..8cfd79def 100644
--- a/gst/rtp/gstrtpopuspay.c
+++ b/gst/rtp/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,