aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-09-18 23:14:43 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-07 00:09:43 (GMT)
commitc73cbdc8734c4fac4df1dfb895366dcb84bc78a2 (patch)
tree5dbee44829209d7506c47cd4b7b09f6195f04bcd /src
parent9531b554d574f910221044ca358af3acc726146c (diff)
[media] Don't unmute when lowering volume
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commands.c b/src/commands.c
index 9141276..9c050e7 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -3020,12 +3020,14 @@ void commands_handle( commands_t *cmd, int tvtime_cmd, const char *arg )
break;
case TVTIME_MIXER_UP:
- case TVTIME_MIXER_DOWN:
- /* If the user hits the volume control, drop us out of mute mode. */
+ /* If the user increases the volume, drop us out of mute mode. */
if( cmd->vidin && videoinput_get_muted( cmd->vidin ) ) {
commands_handle( cmd, TVTIME_TOGGLE_MUTE, 0 );
}
+ /* fallthrough */
+ case TVTIME_MIXER_DOWN:
+
/* Check to see if an argument was passed, if so, use it. */
if (atoi(arg) > 0) {
int perc = atoi(arg);

Privacy Policy