1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 04:15:13 +00:00

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
This commit is contained in:
uau 2006-04-25 22:34:40 +00:00
parent bee52bbd10
commit 729d2a3827

View File

@ -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 {