mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
celtdec: fix error checking with libcelt 0.11
The return value of celt_decode has changed, newer versions now return positive values on success. https://bugzilla.gnome.org/show_bug.cgi?id=659087
This commit is contained in:
parent
90b2484648
commit
37e688197d
1 changed files with 4 additions and 0 deletions
|
@ -760,7 +760,11 @@ celt_dec_chain_parse_data (GstCeltDec * dec, GstBuffer * buf,
|
|||
#else
|
||||
error = celt_decode (dec->state, data, size, out_data);
|
||||
#endif
|
||||
#ifdef HAVE_CELT_0_11
|
||||
if (error < 0) {
|
||||
#else
|
||||
if (error != CELT_OK) {
|
||||
#endif
|
||||
GST_WARNING_OBJECT (dec, "Decoding error: %d", error);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue