mirror of https://github.com/mpv-player/mpv
68d9d11ddf
It's odd that this state is observable, but is made implicit by making the property unavailable. It's also odd that an API user cannot directly put the player into such a state. Just allow reading/writing -1 (or in fact, any out of bounds index) for this case. I'm also refraining from using OPT_CHOICE for the "no selection" case, because although that would be cleaner in theory, it would cause only problems to API users due to the more complex property type (worse is better). One reason for not restricting the integer range on the input property anymore is that if there are no playlist elements, the range would contain only 1 integer, which cannot be represented anymore since the recent m_option change. This was actually broken with 1 element playlists before (and still is, with the constricted type for OSD and the add/cycle commands). Doesn't matter too much. |
||
---|---|---|
.. | ||
af.rst | ||
ao.rst | ||
changes.rst | ||
console.rst | ||
encode.rst | ||
input.rst | ||
ipc.rst | ||
javascript.rst | ||
libmpv.rst | ||
lua.rst | ||
mpv.rst | ||
options.rst | ||
osc.rst | ||
stats.rst | ||
vf.rst | ||
vo.rst |