[MPlayer-cvslog] CVS: main mplayer.c,1.945,1.946
Uoti Urpala CVS
syncmail at mplayerhq.hu
Wed Apr 26 00:34:42 CEST 2006
CVS change done by Uoti Urpala CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv19813
Modified Files:
mplayer.c
Log Message:
The code setting the OSD seek direction indicator for absolute seeks was
nonsense. Fix the to-timestamp case. I don't care enough to fix the
to-percentage case so just add a comment noting it's broken.
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.945
retrieving revision 1.946
diff -u -r1.945 -r1.946
--- mplayer.c 25 Apr 2006 21:36:00 -0000 1.945
+++ mplayer.c 25 Apr 2006 22:34:40 -0000 1.946
@@ -4183,13 +4183,13 @@
if(abs==2) { /* Absolute seek to a specific timestamp in seconds */
abs_seek_pos = 1;
if(sh_video)
- osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;
+ osd_function= (v > sh_video->pts) ? OSD_FFW : OSD_REW;
rel_seek_secs = v;
}
else if(abs) { /* Absolute seek by percentage */
abs_seek_pos = 3;
if(sh_video)
- osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW;
+ osd_function= OSD_FFW; // Direction isn't set correctly
rel_seek_secs = v/100.0;
}
else {
More information about the MPlayer-cvslog
mailing list