1 --- mplayer.c.orig 2007-10-07 21:49:33.000000000 +0200
2 +++ mplayer.c 2007-10-28 14:13:54.000000000 +0100
11 + if(mpctx->demuxer->file_format==DEMUXER_TYPE_AVI && mpctx->sh_video && mpctx->sh_video->video.dwLength>2){
12 + // get pos from frame number / total frames
13 + position=(float)mpctx->d_video->pack_no*100.0f/mpctx->sh_video->video.dwLength;
15 + position=demuxer_get_percent_pos(mpctx->demuxer);
17 + if(mpctx->sh_video) time=mpctx->sh_video->pts;
18 + else if(mpctx->sh_audio) time=playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out);
19 + mp_msg(MSGT_OSD,MSGL_ERR,"SLAVE: time=%.2f position=%.2f\r",time,position);