[MPlayer-dev-eng] [PATCH] improve seeking in realmedia files
陆然
hephooey at gmail.com
Sat Jan 27 09:28:24 CET 2007
Hi,
Here is a patch to improve the seeking behavior of realmedia files. It fixes
the time stamp after seeking by calling real_fix_timestamp(), I tested it
with a few files and it looks ok, meanwhile the old code is not correct
anyway. And the patch also call real_fix_timestamp() when it hits the first
fragment of a packet if it's right after seeking, this is necessary because
otherwise the priv->v_pts will not be updated when
DEMUXER_CTRL_GET_PERCENT_POS is called, currently the percentage bar in the
OSD does not show the right value after seeking.
BTW, the indentation in demux_real.c is terribly broken, I don't know if I
have done the patch according to the no cosmetics rule correctly, feel free
to shout out :)
--
Best Regards,
LR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seek.diff
Type: text/x-diff
Size: 2038 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070127/9e533cf2/attachment.diff>
More information about the MPlayer-dev-eng
mailing list