summaryrefslogtreecommitdiff
path: root/ext/celt
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.decina@collabora.co.uk>2009-03-13 19:42:18 +0100
committerAlessandro Decina <alessandro.decina@collabora.co.uk>2009-03-23 12:16:52 +0100
commit276228da806728723fecde73b539c0c33863d761 (patch)
tree378bb68cf99aeca6f7f918ed4b7df69ab2c96021 /ext/celt
parent2f6d3fdd0ab2f83ac564fccf8882f24f1fedf316 (diff)
downloadgstreamer-plugins-bad-276228da806728723fecde73b539c0c33863d761.tar.gz
celtenc: build with celt 0.5.
Diffstat (limited to 'ext/celt')
-rw-r--r--ext/celt/gstceltenc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/celt/gstceltenc.c b/ext/celt/gstceltenc.c
index d76fd8860..11b57e553 100644
--- a/ext/celt/gstceltenc.c
+++ b/ext/celt/gstceltenc.c
@@ -738,9 +738,15 @@ gst_celt_enc_encode (GstCeltEnc * enc, gboolean flush)
GST_DEBUG_OBJECT (enc, "encoding %d samples (%d bytes)", frame_size, bytes);
+#ifdef HAVE_CELT_0_4
outsize =
- celt_encode (enc->state, data, GST_BUFFER_DATA (outbuf),
- bytes_per_packet);
+ celt_encode (enc->state, data,
+ GST_BUFFER_DATA (outbuf), bytes_per_packet);
+#else
+ outsize =
+ celt_encode (enc->state, data, NULL,
+ GST_BUFFER_DATA (outbuf), bytes_per_packet);
+#endif
g_free (data);