summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-25 22:34:40 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-25 22:34:40 +0000
commit729d2a38277b4a340de22e2cd2e1b930abf4b5d0 (patch)
tree0c92c97cc13ccd74676b8a88c54ebf7928857e1f /mplayer.c
parentbee52bbd1045c9f74ee6f8ff57c53cfb433f0675 (diff)
downloadmpv-729d2a38277b4a340de22e2cd2e1b930abf4b5d0.tar.bz2
mpv-729d2a38277b4a340de22e2cd2e1b930abf4b5d0.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18289 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index 62a15a2b87..ce8eb75c1a 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -4183,13 +4183,13 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
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 {