summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-26 16:11:08 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-26 16:11:08 +0000
commit0cba7d110b04b0e899968e15e3b2e79b25e833dc (patch)
tree344286b8f2c109be9ca7415a15e464d8a6bb8963 /mplayer.c
parent9e4627141721cea66091be08e2ed8a2300d8e888 (diff)
downloadmpv-0cba7d110b04b0e899968e15e3b2e79b25e833dc.tar.bz2
mpv-0cba7d110b04b0e899968e15e3b2e79b25e833dc.tar.xz
Secondly, fixed bug where -loop after file would play one too many times.
I've just added a couple of if's in mplayer.c before it starts play (to make sure its after all the config stuff). patch by Alex Sisson <alex_sisson@yahoo.co.uk> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9106 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 01f8f430ee..912bf0e716 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1715,6 +1715,9 @@ if(force_fps && sh_video){
//==================== START PLAYING =======================
+if(loop_times>1) loop_times--; else
+if(loop_times==1) loop_times = -1;
+
mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_StartPlaying);fflush(stdout);
InitTimer();