mpv/player
wm4 68d9d11ddf player: playlist-pos now use -1 for "no entry selected"
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.
2020-03-21 19:32:50 +01:00
..
javascript js: osd-overlay update: return the command result (match 7a76b577) 2020-03-07 12:37:35 +02:00
lua osc: avoid using a deprecated event 2020-03-21 19:32:50 +01:00
audio.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
client.c client API: actually warn against enabling any deprecated events 2020-03-21 19:32:50 +01:00
client.h scripting: load scripts from directories 2020-02-01 18:09:40 +01:00
command.c player: playlist-pos now use -1 for "no entry selected" 2020-03-21 19:32:50 +01:00
command.h command: remove legacy hook API 2020-03-06 19:23:14 +01:00
configfiles.c player: fix minor coding style issue 2020-01-26 14:29:48 +01:00
core.h player: fix subtle idle mode differences on early program start 2020-03-21 19:32:50 +01:00
external_files.c external_files: add .lrc subtitle extension 2019-09-02 01:25:43 +03:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: require: directory-scripts: first look at <dir>/modules/ 2020-02-07 18:22:12 +02:00
loadfile.c player: playlist-pos now use -1 for "no entry selected" 2020-03-21 19:32:50 +01:00
lua.c lua: fix typo in comment 2020-02-06 23:02:23 +01:00
main.c player: fix subtle idle mode differences on early program start 2020-03-21 19:32:50 +01:00
misc.c player: dumb seeking related stuff, make audio hr-seek default 2020-02-28 17:15:07 +01:00
osd.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
playloop.c player: fix subtle idle mode differences on early program start 2020-03-21 19:32:50 +01:00
screenshot.c screenshot: fix typo in comment 2020-02-07 13:42:42 +01:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c scripting: fix racy crash if loading .run files fails 2020-02-25 22:41:09 +01:00
sub.c player: partially fix backward playback display of cached text subtitles 2020-02-04 20:26:35 +01:00
video.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00