gst/mpegstream/gstdvddemux.c (gst_dvd_demux_handle_dvd_event): Use the new "audio...
authorMartin Soto <martinsoto@users.sourceforge.net>
Fri, 30 Dec 2005 23:51:46 +0000 (23:51 +0000)
committerMartin Soto <martinsoto@users.sourceforge.net>
Fri, 30 Dec 2005 23:51:46 +0000 (23:51 +0000)
commit4252e5c174a9e251215207b56907951ae2570b2c
treedce29214d7f9cd05620fbb41773338827517dc2c
parentf8ccb0441222eb2c56804eb549472157ea7734b7
gst/mpegstream/gstdvddemux.c (gst_dvd_demux_handle_dvd_event): Use the new "audio-shutdown" and "audio-restart" DVD e...

Original commit message from CVS:
2005-12-31  Martin Soto  <martinsoto@users.sourceforge.net>

* gst/mpegstream/gstdvddemux.c (gst_dvd_demux_handle_dvd_event):
Use the new "audio-shutdown" and "audio-restart" DVD events
instead of the "spu-still-frame" event to shutdown and restart
the audio pipeline.

* gst/mpegstream/gstmpegparse.c (gst_mpeg_parse_adjust_ts):
Check for cases where the segment-based adjustment calculation
would produce negative values (which result in an overflow) and
return GST_CLOCK_TIME_NONE instead.

* gst/mpegstream/gstdvddemux.h:
* gst/mpegstream/gstdvddemux.c (gst_dvd_demux_init)
(gst_dvd_demux_process_event, gst_dvd_demux_send_subbuffer):
Add a mechanism to discard audio buffers with timestamps outside
the currently set segment. This was causing (sometimes serious)
synchronization problems after seeking in DVDs with LPCM audio,
since VOBUs usually contain audio material that lies outside the
timestamp range specified by the header.
ChangeLog
gst/mpegstream/gstdvddemux.c
gst/mpegstream/gstdvddemux.h
gst/mpegstream/gstmpegparse.c