mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
rtpdec: fix some buffer leaks
This commit is contained in:
parent
32a3d6e717
commit
9fbdfefc56
1 changed files with 3 additions and 0 deletions
|
@ -541,6 +541,7 @@ bad_packet:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_WARNING (rtpdec, STREAM, DECODE, (NULL),
|
GST_ELEMENT_WARNING (rtpdec, STREAM, DECODE, (NULL),
|
||||||
("RTP packet did not validate, dropping"));
|
("RTP packet did not validate, dropping"));
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -695,9 +696,11 @@ gst_rtp_dec_chain_rtcp (GstPad * pad, GstBuffer * buffer)
|
||||||
bad_packet:
|
bad_packet:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (src, "got invalid RTCP packet");
|
GST_WARNING_OBJECT (src, "got invalid RTCP packet");
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue