summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/command.c b/command.c
index b04fe09656..a7446cb855 100644
--- a/command.c
+++ b/command.c
@@ -755,16 +755,15 @@ static int mp_property_mute(m_option_t *prop, int action, void *arg,
case M_PROPERTY_SET:
if (!arg)
return M_PROPERTY_ERROR;
- mixer_setmuted(&mpctx->mixer, *(int *) arg);
+ mixer_setmute(&mpctx->mixer, *(int *) arg);
return M_PROPERTY_OK;
case M_PROPERTY_STEP_UP:
case M_PROPERTY_STEP_DOWN:
- mixer_mute(&mpctx->mixer);
+ mixer_setmute(&mpctx->mixer, !mixer_getmute(&mpctx->mixer));
return M_PROPERTY_OK;
default:
return m_property_flag_ro(prop, action, arg,
- mixer_getmuted(&mpctx->mixer));
-
+ mixer_getmute(&mpctx->mixer));
}
}
@@ -869,9 +868,6 @@ static int mp_property_balance(m_option_t *prop, int action, void *arg,
{
float bal;
- if (!mpctx->sh_audio || mpctx->sh_audio->channels < 2)
- return M_PROPERTY_UNAVAILABLE;
-
switch (action) {
case M_PROPERTY_GET:
if (!arg)