1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00
mpv/player
wm4 b430c886aa client API: make mpv_set_option set options natively
This should fix some issues, such as not being able to set the
"no-video" option with MPV_FORMAT_FLAG.

Note that this changes semantics a bit. Now setting an option strictly
overwrite it, even if the corresponding command line option does not.
For example, if we change --sub to append by default, then setting the
"sub" option via the client API would still never append. (Oddly, this
also applies to --vf-add, which will overwrite the old value when using
the client API.)

I'm doing this because there's no proper separation between the command
line parser and setting an option using the MPV_FORMAT_STRING format.
Maybe the solution to this mess would be adding format aware code (i.e.
m_option_set_node) to every option type, and falling back to strings
only if needed - but this would mean that you couldn't set e.g. an
integer option using MPV_FORMAT_STRING, which doesn't seem to be ideal
either.

In conclusion, the current approach seems to be most robust, but I'm
open to suggestions should someone find that these semantics are a
problem.
2014-04-22 01:42:57 +02:00
..
lua lua: make it easier to integrate with foreign event loops 2014-04-12 20:41:12 +02:00
timeline player: remove ASX, SMIL and NSC playlist parsers 2014-04-13 15:40:05 +02:00
audio.c af: add replaygain_data field to af_stream and af_instance 2014-04-04 18:35:29 +02:00
client.c client API: make mpv_set_option set options natively 2014-04-22 01:42:57 +02:00
client.h client API: add a way to notify clients of property changes 2014-04-06 03:22:49 +02:00
command.c command: export rotation parameter 2014-04-22 01:42:57 +02:00
command.h client API: add a way to notify clients of property changes 2014-04-06 03:22:49 +02:00
configfiles.c encode: don't apply default config options 2014-04-19 22:05:17 +02:00
core.h client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
discnav.c player: rename dvdnav to discnav 2014-03-30 11:42:49 +09:00
loadfile.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
lua.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
lua.h lua: port to client API 2014-02-10 21:03:59 +01:00
main_fn.c build: add option to build a library 2014-02-10 21:25:22 +01:00
main.c encode: don't resume playback when encoding 2014-04-19 22:31:35 +02:00
misc.c player: dvdnav: fix start time when entering and leaving menu 2014-03-30 07:31:02 +02:00
osd.c player: hack to fix --msgmodule --term-osd-bar 2014-04-13 13:03:31 +02:00
playloop.c player: fix audio EOF check on --no-audio 2014-04-18 00:03:49 +02:00
screenshot.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
screenshot.h
sub.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
video.c video: auto-insert software rotation filter 2014-04-21 02:57:16 +02:00