summaryrefslogtreecommitdiff
path: root/ext/opus/gstopusdec.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-03-12 17:06:11 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2012-03-12 17:06:11 +0100
commit2d9756c703e7670993ce82d414d8d22cf60ddc6e (patch)
tree4a16c0f8e766e16fa250f20ed4d3dd6951fbe505 /ext/opus/gstopusdec.c
parent3c75d7285726fe0a3acf6e2711d5fc2f46cc9f19 (diff)
downloadgstreamer-plugins-bad-2d9756c703e7670993ce82d414d8d22cf60ddc6e.tar.gz
opusdec: fix for caps api change
Diffstat (limited to 'ext/opus/gstopusdec.c')
-rw-r--r--ext/opus/gstopusdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c
index 5c9b363e9..829d029e0 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);