diff options
author | Janne Grunau <janne.grunau@collabora.co.uk> | 2011-02-22 12:33:56 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2011-06-07 20:50:34 +0200 |
commit | 15391b29e16ca971e94cc572fdd56275305cdaf2 (patch) | |
tree | 09decd7ac8f50d29f6103d17098df98f922d8c9f /gst/mpegtsdemux/mpegtspacketizer.h | |
parent | f89a0abca02a7a06d13718d674b835baafc8effe (diff) | |
download | gstreamer-plugins-bad-15391b29e16ca971e94cc572fdd56275305cdaf2.tar.gz |
mpegtsdemux: push based seeking based on PCR
buffer timestamps are converted to GstClockTime to cover pcr/pts wraps.
multiple pcr/pts wraps are handled with an index which ensures at most
a single pcr wraparound between two entries.
the last seen pcr is recorded to have a nearby index point for short seeks
resuming playback might be delayed if the postion is not a keyframe
TODO: replace manual packet scanning and parsing in the initial duration estimation
Diffstat (limited to 'gst/mpegtsdemux/mpegtspacketizer.h')
-rw-r--r-- | gst/mpegtsdemux/mpegtspacketizer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/mpegtspacketizer.h b/gst/mpegtsdemux/mpegtspacketizer.h index f40189b60..832862577 100644 --- a/gst/mpegtsdemux/mpegtspacketizer.h +++ b/gst/mpegtsdemux/mpegtspacketizer.h @@ -138,6 +138,7 @@ GType mpegts_packetizer_get_type(void); MpegTSPacketizer2 *mpegts_packetizer_new (void); void mpegts_packetizer_clear (MpegTSPacketizer2 *packetizer); +void mpegts_packetizer_flush (MpegTSPacketizer2 *packetizer); void mpegts_packetizer_push (MpegTSPacketizer2 *packetizer, GstBuffer *buffer); gboolean mpegts_packetizer_has_packets (MpegTSPacketizer2 *packetizer); MpegTSPacketizerPacketReturn mpegts_packetizer_next_packet (MpegTSPacketizer2 *packetizer, |