From 7783f0b7d7037e2420deece510b8315cfe3b8e91 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 21 Sep 2016 16:19:56 +0200 Subject: client API: more or less deprecate mpv_set_option() With the merging of options and properties, the mpv_set_option() function is close to being useless, and mpv_set_property() can be used for everything instead. There are certain conflicts remaining, which are explained in depth in the docs. For now, none of this should affect existing code using the client API. Make mpv_set_property() redirect to mpv_set_option() before initialization. Remove some options marked as M_OPT_FIXED. The "pause" and "speed" options cannot be written anymore without the playloop being notified by it, so the M_OPT_FIXED does nothing. For "vo-mmcss-profile", the problem was lack of synchronization, which has been added. I'm not sure what the problem was with "frames" - I think it was only marked as M_OPT_FIXED because changing it during playback will have no effect. Except for pause/speed, these changes are needed to make them writable as properties after mpv_initialize(). Also replace all remaining uses of CONF_GLOBAL with M_OPT_FIXED. --- options/m_option.h | 1 - 1 file changed, 1 deletion(-) (limited to 'options/m_option.h') diff --git a/options/m_option.h b/options/m_option.h index 1744023663..92d0575db8 100644 --- a/options/m_option.h +++ b/options/m_option.h @@ -399,7 +399,6 @@ struct m_option { #define CONF_MAX M_OPT_MAX #define CONF_RANGE M_OPT_RANGE #define CONF_NOCFG M_OPT_NOCFG -#define CONF_GLOBAL M_OPT_FIXED #define CONF_PRE_PARSE M_OPT_PRE_PARSE // These flags are used to describe special parser capabilities or behavior. -- cgit v1.2.3