mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-25 01:54:17 +00:00
tsdemux: Free packet buffer even if it doesn't have a payload
This can happen with AFC-only packets. Avoids leaking buffers. https://bugzilla.gnome.org/show_bug.cgi?id=648929
This commit is contained in:
parent
7a9aba912f
commit
390502a093
1 changed files with 2 additions and 0 deletions
|
@ -1466,6 +1466,8 @@ gst_ts_demux_handle_packet (GstTSDemux * demux, TSDemuxStream * stream,
|
||||||
|
|
||||||
if (packet->payload)
|
if (packet->payload)
|
||||||
gst_ts_demux_queue_data (demux, stream, packet);
|
gst_ts_demux_queue_data (demux, stream, packet);
|
||||||
|
else
|
||||||
|
gst_buffer_unref (packet->buffer);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue