[MPlayer-dev-eng] [PATCH] stream aided seeking (dvd precise seeking)

Nico Sabbi nicola_sabbi at fastwebnet.it
Tue Nov 7 01:30:36 CET 2006


This patch overcomes one of the most hideous limitations in mplayer:
the impossibility to precisely seek in dvds (and in the future possibly 
other streams
such as [s]vcd).

I modified demux_seek() so as to try to ask the stream layer to seek to 
the specified position
(if possible), and in order to make it work with relative seeking I also 
added a method to ask the
stream layer the current time.

The change in mplayer.c permits to show in the OSD (but not in the 
status line, for
performace reasons) the "current time" determined by the stream layer 
(if possible)
or else the usual sh_video->pts if the former method fails.

Thanks to Elupus for his help (especially for the fixes related to 
multi-angle dvds).

If no one objects I'll commit this patch tomorrow night.

    Nico

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvdseek14.diff
Type: text/x-patch
Size: 8545 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061107/ec86bcf9/attachment.bin>


More information about the MPlayer-dev-eng mailing list