View | Details | Raw Unified | Return to bug 3952
Collapse All | Expand All

(-)mplayer.c.orig (+19 lines)
Lines 3444-3449 Link Here
3444
  loop_seek=0;
3444
  loop_seek=0;
3445
}
3445
}
3446
3446
3447
#if 1
3448
  if(slave_mode){
3449
    float position=0.0;
3450
    float time=0.0;
3451
    if(demuxer->file_format==DEMUXER_TYPE_AVI && sh_video->video.dwLength>2) {
3452
      // get pos from frame number / total frames
3453
      position=(float)d_video->pack_no*100.0/(float)sh_video->video.dwLength;
3454
      }
3455
    else {
3456
      off_t len = ( demuxer->movi_end - demuxer->movi_start );
3457
      off_t pos = ( demuxer->file_format == DEMUXER_TYPE_AUDIO?stream->pos:demuxer->filepos );
3458
      if(len>0) position=( pos - demuxer->movi_start ) * 100.0 / len;
3459
      }
3460
    if(sh_video) time=d_video->pts;
3461
    else if(sh_audio) time=sh_audio->delay;
3462
    mp_msg(MSGT_OSD,MSGL_ERR,"SLAVE: time=%.2f position=%.2f\r",time,position);
3463
    }
3464
#endif
3465
3447
#ifdef HAVE_NEW_GUI
3466
#ifdef HAVE_NEW_GUI
3448
      if(use_gui){
3467
      if(use_gui){
3449
        guiEventHandling();
3468
        guiEventHandling();

Return to bug 3952