celtdec: make this compile with git libcelt

celt_mode_info was removed, in favor of a _ctl.

https://bugzilla.gnome.org/show_bug.cgi?id=656686
This commit is contained in:
Vincent Penquerc'h 2011-08-16 19:39:40 +01:00 committed by Tim-Philipp Müller
parent 5a0a0aac19
commit ffa9c81798

View file

@ -734,7 +734,12 @@ celt_dec_chain_parse_data (GstCeltDec * dec, GstBuffer * buf,
}
if (dec->discont) {
#ifdef CELT_GET_LOOKAHEAD_REQUEST
/* what will be 0.11.5, I guess, but no versioning yet in git */
celt_decoder_ctl (dec->state, CELT_GET_LOOKAHEAD_REQUEST, &skip);
#else
celt_mode_info (dec->mode, CELT_GET_LOOKAHEAD, &skip);
#endif
}
res = gst_pad_alloc_buffer_and_set_caps (dec->srcpad,