[0.10] gst-plugins-bad: tsbase: unref bad packets too
Wim Taymans
wtay at kemper.freedesktop.org
Mon Apr 30 03:38:05 PDT 2012
Module: gst-plugins-bad
Branch: 0.10
Commit: 15293543e93ad0af80aee36d6408466716a02e43
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=15293543e93ad0af80aee36d6408466716a02e43
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Mon Apr 30 12:36:46 2012 +0200
tsbase: unref bad packets too
---
gst/mpegtsdemux/mpegtsbase.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c
index 4aefd2e..f3fb88f 100644
--- a/gst/mpegtsdemux/mpegtsbase.c
+++ b/gst/mpegtsdemux/mpegtsbase.c
@@ -1385,6 +1385,7 @@ mpegts_base_chain (GstPad * pad, GstBuffer * buf)
&packet)) != PACKET_NEED_MORE)) {
if (G_UNLIKELY (pret == PACKET_BAD)) {
GST_DEBUG_OBJECT (base, "bad packet, skipping");
+ gst_buffer_unref (packet.buffer);
/* bad header, skip the packet */
goto next;
}
More information about the gstreamer-commits
mailing list