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:
caf2be2
)
celt: fix compile against earlier CELT versions
author
Stephen Depooter
<stephend@xandros.com>
Thu, 10 Dec 2009 21:30:26 +0000
(16:30 -0500)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Fri, 19 Feb 2010 09:05:52 +0000
(09:05 +0000)
Check the existence of the CELT_SET_COMPLEXITY symbol
before trying to use it. Fixes compilation against
libcelt 0.4.0.
Fixes #604311.
ext/celt/gstceltenc.c
patch
|
blob
|
history
diff --git
a/ext/celt/gstceltenc.c
b/ext/celt/gstceltenc.c
index
f160b97
..
d984d99
100644
(file)
--- a/
ext/celt/gstceltenc.c
+++ b/
ext/celt/gstceltenc.c
@@
-623,7
+623,9
@@
gst_celt_enc_setup (GstCeltEnc * enc)
celt_encoder_ctl (enc->state, CELT_SET_VBR_RATE (enc->bitrate), 0);
}
#endif
+#ifdef CELT_SET_COMPLEXITY
celt_encoder_ctl (enc->state, CELT_SET_COMPLEXITY (enc->complexity), 0);
+#endif
GST_LOG_OBJECT (enc, "we have frame size %d", enc->frame_size);