From: Wim Taymans Date: Mon, 12 Mar 2012 16:06:11 +0000 (+0100) Subject: opusdec: fix for caps api change X-Git-Tag: 1.19.3~507^2~15738 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d9756c703e7670993ce82d414d8d22cf60ddc6e;p=platform%2Fupstream%2Fgstreamer.git opusdec: fix for caps api change --- diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index 5c9b363e9c..829d029e09 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -214,9 +214,9 @@ gst_opus_dec_negotiate (GstOpusDec * dec, const GstAudioChannelPosition * pos) GstStructure *s; GstAudioInfo info; - caps = gst_caps_make_writable (caps); - gst_caps_truncate (caps); + caps = gst_caps_truncate (caps); + caps = gst_caps_make_writable (caps); s = gst_caps_get_structure (caps, 0); gst_structure_fixate_field_nearest_int (s, "rate", 48000); gst_structure_get_int (s, "rate", &dec->sample_rate);