Mercurial > mplayer.hg
diff mplayer.c @ 5795:6ee426749843
Fix audio only absolute seeking
author | albeu |
---|---|
date | Tue, 23 Apr 2002 13:26:56 +0000 |
parents | d9c211c2907f |
children | c31ad722f491 |
line wrap: on
line diff
--- a/mplayer.c Tue Apr 23 13:07:58 2002 +0000 +++ b/mplayer.c Tue Apr 23 13:26:56 2002 +0000 @@ -2218,8 +2218,9 @@ abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0; if(abs) { abs_seek_pos = 3; - osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; - rel_seek_secs = v; + if(sh_video) + osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; + rel_seek_secs = v/100.0; } else { rel_seek_secs+= v;