diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-07-01 15:15:49 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2010-07-02 00:15:49 -0400 |
commit | 5d21b0815a4a6057c7a33d8dfba3f1b3c8894eea (patch) | |
tree | 4b1edec2ce23034cab362eb916c9e745efde4e89 | |
parent | 7950499805315c637d7347a47f82d97af53a3a5a (diff) |
rtpmux: Don't leak invalid buffers
-rw-r--r-- | gst/rtpmux/gstrtpmux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c index 47f42c943..27da522df 100644 --- a/gst/rtpmux/gstrtpmux.c +++ b/gst/rtpmux/gstrtpmux.c @@ -318,6 +318,7 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer) rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad)); if (!gst_rtp_buffer_validate (buffer)) { + gst_buffer_unref (buffer); GST_ERROR_OBJECT (rtp_mux, "Invalid RTP buffer"); gst_object_unref (rtp_mux); return GST_FLOW_ERROR; |