From fba7c69b8afe7a2c06f14b7fc96b53b1a55819cf Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 25 Nov 2019 19:49:09 +0100 Subject: command: change vid/aid/sid property behavior slightly Again in line with the option-to-property bridge changes. As usual, this causes subtle behavior changes, which may affect some users. --- DOCS/interface-changes.rst | 5 +++++ DOCS/man/input.rst | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'DOCS') diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index a33bfd8be2..14d3bb0bd0 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -51,6 +51,11 @@ Interface changes filter chain initialization fails. Instead, the vf/af options are always set to the user's value, even if it does not reflect the "runtime" vf/af chain. + - the vid/aid/sid/secondary-sid properties (and their aliases: "audio", + "video", "sub") will now allow setting any track ID; before this change, + only IDs of actually existing tracks could be set (the restriction was + active the MPV_EVENT_FILE_LOADED/"file-loaded" event was sent). Setting + an ID for which no track exists is equivalent to disabling it. --- mpv 0.30.0 --- - add `--d3d11-output-format` to enable explicit selection of a D3D11 swap chain format. diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index ced5363ea1..70e3a4e8e9 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -2695,11 +2695,11 @@ You can access (almost) all options as properties, though there are some caveats with some properties (due to historical reasons): ``vid``, ``aid``, ``sid`` - While playback is active, you can set existing tracks only. (The option - allows setting any track ID, and which tracks to enable is chosen at - loading time.) + While playback is active, these result the actually active tracks. For + example, if you set ``aid=5``, and the currently played file contains no + audio track with ID 5, the ``aid`` property will return ``no``. - Option changes at runtime are affected by this as well. + Before mpv 0.31.0, you could set existing tracks at runtime only. ``display-fps`` This inconsistent behavior is deprecated. Post-deprecation, the reported -- cgit v1.2.3