audiodecoder: Make caps writable before fixating
authorHaakon Sporsheim <haakon@pexip.com>
Tue, 29 Apr 2014 07:58:21 +0000 (09:58 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 29 Apr 2014 07:58:21 +0000 (09:58 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=729114

gst-libs/gst/audio/gstaudiodecoder.c

index 7f086fef9168a04a7619c6b09d1c026d6b4ba476..c3acb2e0bb1a384380a0324dd167fd77c54ae70b 100644 (file)
@@ -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;