mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 04:05:34 +00:00
rtpbasedepayload: fix leaks in error code paths
This was introduced when reshuffling the buffer unmaps
in commit bc14cdf529
rtp: rtpbasedepayload: add process_rtp_packet() vfunc
Fixes make check-valgrind.
https://bugzilla.gnome.org/show_bug.cgi?id=750235
This commit is contained in:
parent
5830db7050
commit
232bdf1711
1 changed files with 2 additions and 0 deletions
|
@ -487,11 +487,13 @@ invalid_buffer:
|
|||
}
|
||||
dropping:
|
||||
{
|
||||
gst_rtp_buffer_unmap (&rtp);
|
||||
GST_WARNING_OBJECT (filter, "%d <= 100, dropping old packet", gap);
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
no_process:
|
||||
{
|
||||
gst_rtp_buffer_unmap (&rtp);
|
||||
/* this is not fatal but should be filtered earlier */
|
||||
GST_ELEMENT_ERROR (filter, STREAM, NOT_IMPLEMENTED, (NULL),
|
||||
("The subclass does not have a process or process_rtp_packet method"));
|
||||
|
|
Loading…
Reference in a new issue