From fdc311625ec016a685143097c3dc5e352c08b5d9 Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Mon, 4 Dec 2017 12:30:22 -0500 Subject: player/misc.c: allow both --length and --end to control play endpoint Most options that change the playback endpoint coexist and playback stops when it reaches any of them. (e.g. --ab-loop-b, --end, or --chapter). This patch extends that behavior to --length so it isn't automatically trumped by --end if both are present. These two will interact now as the other options do. This change is also documented in DOCS/man/options.rst. --- DOCS/man/options.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DOCS') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 7cfd1f9e3c..2807cad44d 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -133,6 +133,9 @@ Playback Control Stop after a given time relative to the start time. See ``--start`` for valid option values and examples. + If both ``--end`` and ``--length`` are provided, playback will stop when it + reaches either of the two endpoints. + ``--rebase-start-time=`` Whether to move the file start time to ``00:00:00`` (default: yes). This is less awkward for files which start at a random timestamp, such as -- cgit v1.2.3