From 7c97a1c6cffbdc516ced11f7743c4292eae91e1d Mon Sep 17 00:00:00 2001 From: Haakon Sporsheim Date: Tue, 29 Apr 2014 09:58:21 +0200 Subject: [PATCH] audiodecoder: Make caps writable before fixating https://bugzilla.gnome.org/show_bug.cgi?id=729114 --- gst-libs/gst/audio/gstaudiodecoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 7f086fe..c3acb2e 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -1842,6 +1842,7 @@ gst_audio_decoder_negotiate_default_caps (GstAudioDecoder * dec) goto caps_error; /* before fixating, try to use whatever upstream provided */ + caps = gst_caps_make_writable (caps); caps_size = gst_caps_get_size (caps); if (dec->priv->ctx.input_caps) { GstCaps *sinkcaps = dec->priv->ctx.input_caps; -- 2.7.4