projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b56ab4b
)
tsbase: unref bad packets too
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 30 Apr 2012 10:36:46 +0000
(12:36 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 1 May 2012 09:50:39 +0000
(11:50 +0200)
Conflicts:
gst/mpegtsdemux/mpegtsbase.c
gst/mpegtsdemux/mpegtsbase.c
patch
|
blob
|
history
diff --git
a/gst/mpegtsdemux/mpegtsbase.c
b/gst/mpegtsdemux/mpegtsbase.c
index 7fbd84fa5f4dc0606b3d992cb008cecf2daec071..38beef2e192a7caa468236bb87a6aaa97ffb81ad 100644
(file)
--- a/
gst/mpegtsdemux/mpegtsbase.c
+++ b/
gst/mpegtsdemux/mpegtsbase.c
@@
-1385,9
+1385,12
@@
mpegts_base_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
if (G_UNLIKELY (pret == PACKET_NEED_MORE))
break;
- if (G_UNLIKELY (pret == PACKET_BAD))
+ if (G_UNLIKELY (pret == PACKET_BAD))
{
/* bad header, skip the packet */
+ GST_DEBUG_OBJECT (base, "bad packet, skipping");
+ gst_buffer_unref (packet.buffer);
goto next;
+ }
/* base PSI data */
if (packet.payload != NULL && mpegts_base_is_psi (base, &packet)) {