mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 07:26:29 +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
|
#else
|
||||||
error = celt_decode (dec->state, data, size, out_data);
|
error = celt_decode (dec->state, data, size, out_data);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_CELT_0_11
|
||||||
|
if (error < 0) {
|
||||||
|
#else
|
||||||
if (error != CELT_OK) {
|
if (error != CELT_OK) {
|
||||||
|
#endif
|
||||||
GST_WARNING_OBJECT (dec, "Decoding error: %d", error);
|
GST_WARNING_OBJECT (dec, "Decoding error: %d", error);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue