Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
4dd7f02c
Commit
4dd7f02c
authored
Oct 22, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotkeys: show intended rather than current mute status
parent
c62e5319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
modules/control/hotkeys.c
modules/control/hotkeys.c
+15
-9
No files found.
modules/control/hotkeys.c
View file @
4dd7f02c
...
...
@@ -286,18 +286,24 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
break
;
}
case
ACTIONID_VOL_MUTE
:
if
(
playlist_MuteToggle
(
p_playlist
)
==
0
)
{
int
mute
=
playlist_MuteGet
(
p_playlist
);
if
(
mute
<
0
)
break
;
mute
=
!
mute
;
if
(
playlist_MuteSet
(
p_playlist
,
mute
)
)
break
;
float
vol
=
playlist_VolumeGet
(
p_playlist
);
if
(
mute
||
vol
==
0
.
f
)
{
float
vol
=
playlist_VolumeGet
(
p_playlist
);
if
(
playlist_MuteGet
(
p_playlist
)
>
0
||
vol
==
0
.
f
)
{
ClearChannels
(
p_intf
,
p_vout
);
DisplayIcon
(
p_vout
,
OSD_MUTE_ICON
);
}
else
DisplayVolume
(
p_intf
,
p_vout
,
vol
);
ClearChannels
(
p_intf
,
p_vout
);
DisplayIcon
(
p_vout
,
OSD_MUTE_ICON
);
}
else
DisplayVolume
(
p_intf
,
p_vout
,
vol
);
break
;
}
case
ACTIONID_AUDIODEVICE_CYCLE
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment