mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
isacdec: Remove impossible check
WebRtcIsac_DecodePlc() never returns a negative value (confirmed by documentation and current/historical code) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
d6eebeafbf
commit
3e83d7d0bc
1 changed files with 1 additions and 8 deletions
|
@ -187,14 +187,7 @@ gst_isacdec_plc (GstIsacDec * self, GstClockTime duration)
|
|||
|
||||
gst_buffer_unmap (output, &map_write);
|
||||
|
||||
if (ret < 0) {
|
||||
/* error */
|
||||
gint16 code = WebRtcIsac_GetErrorCode (self->isac);
|
||||
GST_WARNING_OBJECT (self, "Failed to produce PLC: %s (%d)",
|
||||
isac_error_code_to_str (code), code);
|
||||
gst_buffer_unref (output);
|
||||
return GST_FLOW_ERROR;
|
||||
} else if (ret == 0) {
|
||||
if (ret == 0) {
|
||||
GST_DEBUG_OBJECT (self, "Decoder didn't produce any PLC frame");
|
||||
gst_buffer_unref (output);
|
||||
return GST_FLOW_OK;
|
||||
|
|
Loading…
Reference in a new issue