From 1944a34c230b6afb7707fe4fb5eb0c613b96db9b Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Apr 2016 22:15:17 +0200 Subject: [PATCH] command: if only ab-loop-b is set, loop from start of file Commit 382bafcb changed the behavior for ab-loop-a. This commit changes ab-loop-b so that the behavior is symmetric. Adjust the OSD rendering accordingly to the two changes. Also fix mentions of the "ab_loop" command to the now preferred "ab-loop". --- DOCS/interface-changes.rst | 5 +++-- DOCS/man/input.rst | 5 ++--- DOCS/man/options.rst | 9 +++++++-- etc/input.conf | 2 +- player/command.c | 12 ++++++++---- player/osd.c | 9 +++++---- 6 files changed, 26 insertions(+), 16 deletions(-) diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 1a175d798e..3be16933ba 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -20,8 +20,9 @@ Interface changes :: --- mpv 0.17.1 --- - - now ab-loops are active even if the "ab-loop-b" property is unset ("no"), - in which case the end of the file is used as B loop point + - now ab-loops are active even if one of the "ab-loop-a"/"-b" properties is + unset ("no"), in which case the start of the file is used if the A loop + point is unsert, and the end of the file for an unset B loop point --- mpv 0.17.0 --- - deprecate "track-list/N/audio-channels" property (use "track-list/N/demux-channel-count" instead) diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 52ace4aada..83fddcf968 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1081,9 +1081,8 @@ Property list "default" MPV_FORMAT_FLAG ``ab-loop-a``, ``ab-loop-b`` (RW) - Set/get A-B loop points. See corresponding options and ``ab-loop`` command. - The special value ``no`` on ``ab-loop-a`` disables looping, while setting - ``ab-loop-b`` to ``no`` loops when the end of the file is reached. + Set/get A-B loop points. See corresponding options and ``ab-loop`` command + for details. ``angle`` (RW) Current DVD angle. diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 18ac7fd2f0..2bd76fa800 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -261,8 +261,13 @@ Playback Control ``--ab-loop-a=