Skip to content

Commit 1f2bf81

Browse files
committed
player/command: add mpv-full-configuration property
This allows the available mpv build features to be available as a property for scripts
1 parent 3600c71 commit 1f2bf81

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

DOCS/man/input.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3875,6 +3875,11 @@ Property list
38753875
meson version used to compile mpv is older than 1.1.0, then a hardcoded
38763876
string of a few, arbitrary options is displayed instead.
38773877

3878+
``mpv-full-configuration``
3879+
The full list of enabled features available in the current build. The
3880+
feature names are listed in ``meson.options`` and the string is space
3881+
separated.
3882+
38783883
``ffmpeg-version``
38793884
The contents of the ``av_version_info()`` API call. This is a string which
38803885
identifies the build in some way, either through a release version number,

player/command.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3653,6 +3653,12 @@ static int mp_property_configuration(void *ctx, struct m_property *prop,
36533653
return m_property_strdup_ro(action, arg, CONFIGURATION);
36543654
}
36553655

3656+
static int mp_property_full_configuration(void *ctx, struct m_property *prop,
3657+
int action, void *arg)
3658+
{
3659+
return m_property_strdup_ro(action, arg, FULLCONFIG);
3660+
}
3661+
36563662
static int mp_property_ffmpeg(void *ctx, struct m_property *prop,
36573663
int action, void *arg)
36583664
{
@@ -4444,6 +4450,7 @@ static const struct m_property mp_properties_base[] = {
44444450

44454451
{"mpv-version", mp_property_version},
44464452
{"mpv-configuration", mp_property_configuration},
4453+
{"mpv-full-configuration", mp_property_full_configuration},
44474454
{"ffmpeg-version", mp_property_ffmpeg},
44484455
{"libass-version", mp_property_libass_version},
44494456
{"platform", mp_property_platform},

0 commit comments

Comments
 (0)