[MPlayer-dev-eng] [PATCH] Get Demuxer Time for Proper DVD Time REDUX
Paul Huwe
reicow at yahoo.com
Thu Jul 15 21:30:52 CEST 2010
> I've created a small tweak to add a slave command
> "get_demux_time_pos" to return the present demuxer time as a
> float (out to 3 digits, aka millisecond accuracy). I was
> inspired to create this because "get_time_pos" gets reset to
> zero during the course of playing a DVD and I need the
> proper DVD time throughout (to sub-second accuracy).
> Searching on google showed numerous posts where others have
> a need for a timer that does not reset.
>
> The patch consists of small tweaks to 5 files:
>
input/input.h, input/input.c, libmpdemux/demuxer.h, libmpdemux/demuxer.c, and command.c
> That's it. I've tested it out with several DVDs, and it
> outputs the demux time properly.
>
> In addition to giving timing information for DVDs and
> possibly other media, it can help front-end "seekbars" that
> rely on get_time_pos, and thus get munged during DVD
> playback (like, say, in SMPlayer).
Patch file is attached to this mail. Patched to rev 31742.
I apologize for missing the FAQ. In order, I looked for the mailing list FAQ in the subscription mail, on the Mailing List page, and the documentation page. I clearly missed the FAQ (dunno how), and sifted through the English HTML Documentation.
Please consider my patch.
Thanks,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get_demux_time_pos.patch
Type: application/octet-stream
Size: 2602 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100715/9948e124/attachment.obj>
More information about the MPlayer-dev-eng
mailing list