nathan@8: --- mplayer.c.orig 2007-10-07 21:49:33.000000000 +0200 nathan@8: +++ mplayer.c 2007-10-28 14:13:54.000000000 +0100 nathan@8: @@ -3543,6 +3543,22 @@ nathan@8: edl_decision = 0; nathan@8: } nathan@8: nathan@8: +#if 1 nathan@8: + if(slave_mode){ nathan@8: + float position=0.0; nathan@8: + float time=0.0; nathan@8: + if(mpctx->demuxer->file_format==DEMUXER_TYPE_AVI && mpctx->sh_video && mpctx->sh_video->video.dwLength>2){ nathan@8: + // get pos from frame number / total frames nathan@8: + position=(float)mpctx->d_video->pack_no*100.0f/mpctx->sh_video->video.dwLength; nathan@8: + } else { nathan@8: + position=demuxer_get_percent_pos(mpctx->demuxer); nathan@8: + } nathan@8: + if(mpctx->sh_video) time=mpctx->sh_video->pts; nathan@8: + else if(mpctx->sh_audio) time=playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out); nathan@8: + mp_msg(MSGT_OSD,MSGL_ERR,"SLAVE: time=%.2f position=%.2f\r",time,position); nathan@8: + } nathan@8: +#endif nathan@8: + nathan@8: #ifdef HAVE_NEW_GUI nathan@8: if(use_gui){ nathan@8: guiEventHandling();