[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#418855: (g)mplayer enters infinite loop when using -loop 0



Control: tags -1 patch

On Fri, 17 Feb 2023 18:02:52 +0100 =?utf-8?Q?Reimar_D=C3=B6ffinger?=
<Reimar.Doeffinger@gmx.de> wrote:
> [...]
> 
> As far as I know this is intentional and documented behaviour.
> It acts the same as if you had specified "anyfile" infinitely many
> times on the command-line. It is useful behaviour in case the file
> might be created or replaced. I suspect the behaviour you wanted is
> the one you get when you add -loop 0 after the file name.
> 

Hi,

This make sense but it's not obvious to me; it probably can inferred by
looking at

> mplayer [options] file1 [specific options] [file2] [specific options]

from the man page and guess that using as [options] or [specific
options] has a different behavior but I think few lines clarifying this
in the manpage would help.

I propose to add an example, something like the following

--- ./mplayer.1-orig	2024-01-26 13:20:30.505892551 +0100
+++ ./mplayer.1	2024-01-31 18:20:14.448481244 +0100
@@ -1178,7 +1178,15 @@
 .B \-loop <number>
 Loops movie playback <number> times.
 0 means forever.
-Use \-loop 0 to automatically reconnect to live streaming URLs.
+Use
+.br
+mplayer \-loop 0 URL
+.br
+to automatically reconnect to live streaming URLs; use
+.br
+mplayer file -loop n
+.br
+to loop n times over file.
 .
 .TP
 .B \-menu (OSD menu only)


Reply to: