summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-16 19:47:36 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-16 19:47:36 +0000
commit90f1c3cc920e61de7537dc445f2200c9886f22c4 (patch)
tree91876e2eb72f3abdb9e57c004870eb5e4f56a19e /mplayer.c
parentad543c73280ad92c5a3046cb412f09fa1a5869c1 (diff)
downloadmpv-90f1c3cc920e61de7537dc445f2200c9886f22c4.tar.bz2
mpv-90f1c3cc920e61de7537dc445f2200c9886f22c4.tar.xz
Remove broken option reset from per-file loop
When -loop is used as a per-file option it seeks back to the start of the file from the end and tries to reset options to their original values. This reset is not implemented properly: it simply sets the option variables back without running any of the associated control code. Implementing the option reset functionality properly would be a significant amount of work and there is no clear need for it, so I'm simply removing the broken version. None of this affects the use of -loop as a global option. That case has a separate implementation which always starts a new file from scratch with default option values. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23567 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index 693b7ed353..fcb7948397 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3540,9 +3540,6 @@ if(step_sec>0) {
/* Looping. */
if(mpctx->eof==1 && loop_times>=0) {
- int l = loop_times;
- play_tree_iter_step(mpctx->playtree_iter,0,0);
- loop_times = l;
mp_msg(MSGT_CPLAYER,MSGL_V,"loop_times = %d, eof = %d\n", loop_times,mpctx->eof);
if(loop_times>1) loop_times--; else