projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3672b8
)
opusdec: fix for caps api change
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 12 Mar 2012 16:06:11 +0000
(17:06 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 12 Mar 2012 16:06:11 +0000
(17:06 +0100)
ext/opus/gstopusdec.c
patch
|
blob
|
history
diff --git
a/ext/opus/gstopusdec.c
b/ext/opus/gstopusdec.c
index
5c9b363
..
829d029
100644
(file)
--- 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);