diff options
author | Zeid Bekli <zeidb@axis.com> | 2020-08-20 15:26:04 +0300 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-08-24 22:43:15 +0300 |
commit | 3211c65a5e6bc3233fe03398b3f1b813f0702ea2 (patch) | |
tree | a0a986159549e70a5558f5af0370426dd22e9911 /gst | |
parent | 6419368b4caa4df769451b7bc7f27f3cada390d6 (diff) |
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>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtp/gstrtpL16depay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpL16depay.c b/gst/rtp/gstrtpL16depay.c index 20b2f9f3f..f054a2480 100644 --- a/gst/rtp/gstrtpL16depay.c +++ b/gst/rtp/gstrtpL16depay.c @@ -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; } } |