mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
tsbase: unref bad packets too
Conflicts: gst/mpegtsdemux/mpegtsbase.c
This commit is contained in:
parent
b56ab4b3cf
commit
7394deef33
1 changed files with 4 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue