changeset 1125:3ec8f4779e81

-frames 0 fixed
author arpi_esp
date Wed, 13 Jun 2001 21:57:36 +0000
parents 0e95f30ffd4c
children 4f610bd631ac
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Jun 13 21:55:24 2001 +0000
+++ b/mplayer.c	Wed Jun 13 21:57:36 2001 +0000
@@ -1498,6 +1498,11 @@
 
 while(!eof){
 
+    if(play_n_frames>=0){
+      --play_n_frames;
+      if(play_n_frames<0) exit_player("Requested number of frames played");
+    }
+
 /*========================== PLAY AUDIO ============================*/
 //if(!has_audio){
 //  int playsize=512;
@@ -1836,11 +1841,6 @@
 
     current_module=NULL;
     
-    if(play_n_frames>=0){
-      --play_n_frames;
-      if(play_n_frames<0) exit_player("Requested number of frames played");
-    }
-    
     if(eof) break;
     if(force_redraw){
       --force_redraw;