diff options
author | wm4 <wm4@nowhere> | 2019-12-16 01:54:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-16 01:54:06 +0100 |
commit | 1d482e42cbfca3a81a17184c8bcb4674b58a195d (patch) | |
tree | 14a9f799f07357904ae50acbb94cf8a48ef26af2 /player/command.c | |
parent | de0f9b9f2d12f59e31220cf26e3a258e126987c7 (diff) | |
download | mpv-1d482e42cbfca3a81a17184c8bcb4674b58a195d.tar.bz2 mpv-1d482e42cbfca3a81a17184c8bcb4674b58a195d.tar.xz |
command: remove unnecessary mute property implementation
This only added the CONSTRICTED_TYPE thing, but it works correctly
without.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/player/command.c b/player/command.c index 901326b498..c634caa11f 100644 --- a/player/command.c +++ b/player/command.c @@ -1575,20 +1575,6 @@ static int mp_property_volume(void *ctx, struct m_property *prop, return mp_property_generic_option(mpctx, prop, action, arg); } -/// Mute (RW) -static int mp_property_mute(void *ctx, struct m_property *prop, - int action, void *arg) -{ - MPContext *mpctx = ctx; - - if (action == M_PROPERTY_GET_CONSTRICTED_TYPE) { - *(struct m_option *)arg = (struct m_option){.type = CONF_TYPE_FLAG}; - return M_PROPERTY_OK; - } - - return mp_property_generic_option(mpctx, prop, action, arg); -} - static int mp_property_ao_volume(void *ctx, struct m_property *prop, int action, void *arg) { @@ -3319,7 +3305,6 @@ static const struct m_property mp_properties_base[] = { // Audio {"mixer-active", mp_property_mixer_active}, {"volume", mp_property_volume}, - {"mute", mp_property_mute}, {"ao-volume", mp_property_ao_volume}, {"ao-mute", mp_property_ao_mute}, {"audio-delay", mp_property_audio_delay}, |