From 729d2a38277b4a340de22e2cd2e1b930abf4b5d0 Mon Sep 17 00:00:00 2001 From: uau Date: Tue, 25 Apr 2006 22:34:40 +0000 Subject: [PATCH] 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 --- mplayer.c | 4 ++-- 1 file 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 {