summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-19 06:21:41 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-19 06:21:41 +0000
commit123256d73639487bb37319554b1f845d01df55bb (patch)
tree80b7a070b25e36d50a6c8b9780c70ce370269f59 /mplayer.c
parent05db632e252bcd5430431e2596823e388501309e (diff)
downloadmpv-123256d73639487bb37319554b1f845d01df55bb.tar.bz2
mpv-123256d73639487bb37319554b1f845d01df55bb.tar.xz
Fix loop playback. Main loop was quited on end of video.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5699 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 7869a8dfc9..05b1a009cb 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1492,6 +1492,7 @@ if(!sh_video) {
//-------------------- Decode a frame: -----------------------
vdecode_time=video_time_usage;
+ while(1)
{ unsigned char* start=NULL;
int in_size;
// get it!
@@ -1521,6 +1522,7 @@ if(!sh_video) {
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. --------------------