celt: Remove support for celt < 0.5

celt 0.5 was released more than a year ago and the bitstream is
incompatible with the current one anyway.
This commit is contained in:
Sebastian Dröge 2010-07-05 09:52:18 +02:00
parent 3018802bda
commit ab439a95bb
2 changed files with 2 additions and 15 deletions

View file

@ -573,15 +573,8 @@ AG_GST_CHECK_FEATURE(CDAUDIO, [cdaudio], cdaudio, [
dnl *** celt ***
translit(dnm, m, l) AM_CONDITIONAL(USE_CELT, true)
AG_GST_CHECK_FEATURE(CELT, [celt], celt, [
PKG_CHECK_MODULES(CELT, celt >= 0.4.0, [
HAVE_CELT="yes"
], [
AC_MSG_RESULT(no)
HAVE_CELT="no"
])
PKG_CHECK_MODULES(CELT_0_5, celt >= 0.5.0, [
AC_DEFINE([HAVE_CELT_0_5], 1, [Define if libcelt 0.5 is installed])
PKG_CHECK_MODULES(CELT, celt >= 0.5.0, [
AC_DEFINE([HAVE_CELT], 1, [Define if libcelt 0.5 is installed])
], [
AC_MSG_RESULT(no)
])

View file

@ -798,15 +798,9 @@ gst_celt_enc_encode (GstCeltEnc * enc, gboolean flush)
celt_encode (enc->state, data, frame_size,
GST_BUFFER_DATA (outbuf), bytes_per_packet);
#else
#ifdef HAVE_CELT_0_5
outsize =
celt_encode (enc->state, data, NULL,
GST_BUFFER_DATA (outbuf), bytes_per_packet);
#else
outsize =
celt_encode (enc->state, data,
GST_BUFFER_DATA (outbuf), bytes_per_packet);
#endif
#endif
g_free (data);