[MPlayer-cvslog] r20508 - trunk/libmpdemux/demux_real.c
reimar
subversion at mplayerhq.hu
Sun Oct 29 13:32:13 CET 2006
Author: reimar
Date: Sun Oct 29 13:32:12 2006
New Revision: 20508
Modified:
trunk/libmpdemux/demux_real.c
Log:
Quick hack to implement percent-based seeking, also fixes seeking with gmplayer
Modified: trunk/libmpdemux/demux_real.c
==============================================================================
--- trunk/libmpdemux/demux_real.c (original)
+++ trunk/libmpdemux/demux_real.c Sun Oct 29 13:32:12 2006
@@ -1841,6 +1841,8 @@
if (flags & 1)
/* seek absolute */
priv->current_apacket = priv->current_vpacket = 0;
+ if (flags & 2) // percent seek
+ rel_seek_secs *= priv->duration;
if ((streams & 1) && priv->current_vpacket >= priv->index_table_size[vid])
priv->current_vpacket = priv->index_table_size[vid] - 1;
More information about the MPlayer-cvslog
mailing list