changeset 5698:cb47abf3b511

Fix loop playback. Main loop was quited on end of video.
author albeu
date Fri, 19 Apr 2002 06:21:41 +0000
parents d1c22e7fe9fc
children 1dde9686d33b
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Apr 19 02:20:29 2002 +0000
+++ b/mplayer.c	Fri Apr 19 06:21:41 2002 +0000
@@ -1492,6 +1492,7 @@
 
     //--------------------  Decode a frame: -----------------------
     vdecode_time=video_time_usage;
+    while(1)
     {   unsigned char* start=NULL;
 	int in_size;
 	// get it!
@@ -1521,6 +1522,7 @@
 	current_module="decode_video";
 //	printf("Decode! %p  %d  \n",start,in_size);
 	blit_frame=decode_video(sh_video,start,in_size,drop_frame);
+	break;
     }
     vdecode_time=video_time_usage-vdecode_time;
     //------------------------ frame decoded. --------------------