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
7dba440e
Commit
7dba440e
authored
Nov 01, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: remove aout_MuteToggle()
parent
9a064546
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
include/vlc_aout_intf.h
include/vlc_aout_intf.h
+0
-9
lib/audio.c
lib/audio.c
+3
-1
No files found.
include/vlc_aout_intf.h
View file @
7dba440e
...
...
@@ -38,13 +38,4 @@ VLC_API int aout_MuteSet( vlc_object_t *, bool );
VLC_API
int
aout_MuteGet
(
vlc_object_t
*
);
#define aout_MuteGet(a) aout_MuteGet(VLC_OBJECT(a))
static
inline
int
aout_MuteToggle
(
vlc_object_t
*
obj
)
{
int
val
=
aout_MuteGet
(
obj
);
if
(
val
>=
0
)
val
=
aout_MuteSet
(
obj
,
!
val
);
return
val
;
}
#define aout_MuteToggle(a) aout_MuteToggle(VLC_OBJECT(a))
#endif
/* _VLC_AOUT_H */
lib/audio.c
View file @
7dba440e
...
...
@@ -249,7 +249,9 @@ void libvlc_audio_output_set_device_type( libvlc_media_player_t *mp,
void
libvlc_audio_toggle_mute
(
libvlc_media_player_t
*
mp
)
{
aout_MuteToggle
(
mp
);
int
mute
=
libvlc_audio_get_mute
(
mp
);
if
(
mute
!=
-
1
)
libvlc_audio_set_mute
(
mp
,
!
mute
);
}
int
libvlc_audio_get_mute
(
libvlc_media_player_t
*
mp
)
...
...
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