rtpL16depay: unref buffer on error

gst_rtp_L16_depay_process to unref buffer on wrong payload size or
reorder failure.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/702>
This commit is contained in:
Zeid Bekli 2020-08-20 14:26:04 +02:00 committed by GStreamer Merge Bot
parent 6419368b4c
commit 3211c65a5e

View file

@ -280,12 +280,14 @@ wrong_payload_size:
{
GST_ELEMENT_WARNING (rtpL16depay, STREAM, DECODE,
("Wrong Payload Size."), (NULL));
gst_buffer_unref (outbuf);
return NULL;
}
reorder_failed:
{
GST_ELEMENT_ERROR (rtpL16depay, STREAM, DECODE,
("Channel reordering failed."), (NULL));
gst_buffer_unref (outbuf);
return NULL;
}
}