tsdemux: Push packets as early as possible
authorEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 5 Mar 2012 08:38:57 +0000 (09:38 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 5 Mar 2012 08:41:48 +0000 (09:41 +0100)
commitc557f71756ce7d58c75636b434b1a0faabdf8a81
treebb87d6b7e5c4abf53318bd586da0c62aa850232b
parent4565bb1c01da2e378314a1d8e9e22c237191ca9f
tsdemux: Push packets as early as possible

When the PES header tells us how big the outgoing packet is, push the
packet downstream as soon as we have the specified size instead of waiting
for the beginning of the next packet.
Reduces latency and removes issues with very sparse streams (like subtitles
and subpictures).
gst/mpegtsdemux/tsdemux.c