Mercurial > mplayer.hg
changeset 18288:008309f674bd
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.
author | uau |
---|---|
date | Tue, 25 Apr 2006 22:34:40 +0000 |
parents | 292337d09af2 |
children | 459336979cf1 |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Tue Apr 25 21:36:02 2006 +0000 +++ b/mplayer.c Tue Apr 25 22:34:40 2006 +0000 @@ -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 {