From 755289ed0ceefe35d5ef14b39886389ecf2e47a7 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 19 Feb 2015 14:05:06 +0000 Subject: [PATCH] rtpopuspay: make caps writable before truncating them https://bugzilla.gnome.org/show_bug.cgi?id=737810 --- gst/rtp/gstrtpopuspay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtp/gstrtpopuspay.c b/gst/rtp/gstrtpopuspay.c index 7cd90eff63..eebbdee766 100644 --- a/gst/rtp/gstrtpopuspay.c +++ b/gst/rtp/gstrtpopuspay.c @@ -100,8 +100,8 @@ gst_rtp_opus_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps) src_caps = gst_pad_get_allowed_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload)); if (src_caps) { - src_caps = gst_caps_truncate (src_caps); src_caps = gst_caps_make_writable (src_caps); + src_caps = gst_caps_truncate (src_caps); s = gst_caps_get_structure (src_caps, 0); gst_structure_fixate_field_string (s, "encoding-name", "X-GST-OPUS-DRAFT-SPITTKA-00"); -- 2.34.1