# HG changeset patch # User pontscho # Date 1019570261 0 # Node ID c31ad722f491b3c9b3bd6b534e2a8f7f0dbaee79 # Parent 7a4b18b787c0c67f47b21e03efa0956b0bb32fa7 mostma' fix diff -r 7a4b18b787c0 -r c31ad722f491 mplayer.c --- a/mplayer.c Tue Apr 23 13:27:46 2002 +0000 +++ b/mplayer.c Tue Apr 23 13:57:41 2002 +0000 @@ -2218,9 +2218,8 @@ abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0; if(abs) { abs_seek_pos = 3; - if(sh_video) - osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; - rel_seek_secs = v/100.0; + osd_function= (v > sh_video->timer) ? OSD_FFW : OSD_REW; + rel_seek_secs = v; } else { rel_seek_secs+= v; @@ -2744,8 +2743,8 @@ int pos=(demuxer->file_format==DEMUXER_TYPE_AVI)?demuxer->filepos:d_video->pos; guiIntfStruct.Position=(len<=0)?0:((float)(pos-demuxer->movi_start) / len * 100.0f); } - if ( demuxer->file_format==DEMUXER_TYPE_AUDIO ) guiIntfStruct.TimeSec=sh_audio->timer; - else guiIntfStruct.TimeSec=d_video->pts; + if ( sh_video ) guiIntfStruct.TimeSec=d_video->pts; + else if ( sh_audio ) guiIntfStruct.TimeSec=sh_audio->timer; if(guiIntfStruct.Playing==0) break; // STOP if(guiIntfStruct.Playing==2) osd_function=OSD_PAUSE; if ( guiIntfStruct.VolumeChanged )