From 5d893c7ea23389df06c5ca00014ac0c89225a719 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 22 Oct 2012 12:08:41 +0200 Subject: [PATCH] opuspay: remove pointless caps serialization Remove the caps serialization in the rtp caps. the spec nor the receiver does anything with it. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=686547 --- gst/rtp/gstrtpopuspay.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gst/rtp/gstrtpopuspay.c b/gst/rtp/gstrtpopuspay.c index cb3279c2a3..5ba3217cde 100644 --- a/gst/rtp/gstrtpopuspay.c +++ b/gst/rtp/gstrtpopuspay.c @@ -94,16 +94,10 @@ static gboolean gst_rtp_opus_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) { gboolean res; - gchar *capsstr; - - capsstr = gst_caps_to_string (caps); gst_rtp_base_payload_set_options (payload, "audio", FALSE, "X-GST-OPUS-DRAFT-SPITTKA-00", 48000); - res = - gst_rtp_base_payload_set_outcaps (payload, "caps", G_TYPE_STRING, capsstr, - NULL); - g_free (capsstr); + res = gst_rtp_base_payload_set_outcaps (payload, NULL); return res; }