diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-28 17:13:18 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-28 17:13:18 +0000 |
commit | d8fd7131bbcde029ab41799fd3162050b43f6848 (patch) | |
tree | 4ea6118dc9cdd8ad0e520ec2d1f1f55a99abc422 /mplayer.c | |
parent | 4f40ec312c410d061ff34cbf46df80209d820c92 (diff) | |
download | mpv-d8fd7131bbcde029ab41799fd3162050b43f6848.tar.bz2 mpv-d8fd7131bbcde029ab41799fd3162050b43f6848.tar.xz |
-frames 0 fix, multifile frames support by tibcu
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6591 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -233,6 +233,7 @@ static float force_fps=0; static int force_srate=0; static int frame_dropping=0; // option 0=no drop 1= drop vo 2= drop decode static int play_n_frames=-1; +static int play_n_frames_mf=-1; // screen info: char* video_driver=NULL; //"mga"; // default @@ -1489,12 +1490,18 @@ if (dvd_nav && stream->type==STREAMTYPE_DVDNAV) { total_time_usage_start=GetTimer(); audio_time_usage=0; video_time_usage=0; vout_time_usage=0; total_frame_cnt=0; drop_frame_cnt=0; // fix for multifile fps benchmark +play_n_frames=play_n_frames_mf; + +if(play_n_frames==0){ + eof=PT_NEXT_ENTRY; goto goto_next_file; +} + while(!eof){ float aq_sleep_time=0; if(play_n_frames>=0){ --play_n_frames; - if(play_n_frames<0) eof = PT_NEXT_ENTRY; + if(play_n_frames<=0) eof = PT_NEXT_ENTRY; } /*========================== PLAY AUDIO ============================*/ |