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:
Edward Hervey 2011-04-29 12:08:04 +02:00
parent 7a9aba912f
commit 390502a093

View file

@ -1466,6 +1466,8 @@ gst_ts_demux_handle_packet (GstTSDemux * demux, TSDemuxStream * stream,
if (packet->payload)
gst_ts_demux_queue_data (demux, stream, packet);
else
gst_buffer_unref (packet->buffer);
return res;
}