mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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:
parent
6419368b4c
commit
3211c65a5e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue