mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
rtpmux: Don't leak invalid buffers
This commit is contained in:
parent
a45429d81d
commit
c00f14419b
1 changed files with 1 additions and 0 deletions
|
@ -318,6 +318,7 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
|
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
if (!gst_rtp_buffer_validate (buffer)) {
|
if (!gst_rtp_buffer_validate (buffer)) {
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
GST_ERROR_OBJECT (rtp_mux, "Invalid RTP buffer");
|
GST_ERROR_OBJECT (rtp_mux, "Invalid RTP buffer");
|
||||||
gst_object_unref (rtp_mux);
|
gst_object_unref (rtp_mux);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
|
|
Loading…
Reference in a new issue