Mercurial > mplayer.hg
comparison mplayer.c @ 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 | 87161f96fa66 |
comparison
equal
deleted
inserted
replaced
18287:292337d09af2 | 18288:008309f674bd |
---|---|
4181 v = cmd->args[0].v.f; | 4181 v = cmd->args[0].v.f; |
4182 abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0; | 4182 abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0; |
4183 if(abs==2) { /* Absolute seek to a specific timestamp in seconds */ | 4183 if(abs==2) { /* Absolute seek to a specific timestamp in seconds */ |
4184 abs_seek_pos = 1; | 4184 abs_seek_pos = 1; |
4185 if(sh_video) | 4185 if(sh_video) |
4186 osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; | 4186 osd_function= (v > sh_video->pts) ? OSD_FFW : OSD_REW; |
4187 rel_seek_secs = v; | 4187 rel_seek_secs = v; |
4188 } | 4188 } |
4189 else if(abs) { /* Absolute seek by percentage */ | 4189 else if(abs) { /* Absolute seek by percentage */ |
4190 abs_seek_pos = 3; | 4190 abs_seek_pos = 3; |
4191 if(sh_video) | 4191 if(sh_video) |
4192 osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; | 4192 osd_function= OSD_FFW; // Direction isn't set correctly |
4193 rel_seek_secs = v/100.0; | 4193 rel_seek_secs = v/100.0; |
4194 } | 4194 } |
4195 else { | 4195 else { |
4196 rel_seek_secs+= v; | 4196 rel_seek_secs+= v; |
4197 osd_function= (v > 0) ? OSD_FFW : OSD_REW; | 4197 osd_function= (v > 0) ? OSD_FFW : OSD_REW; |