Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a16b6c3c
Commit
a16b6c3c
authored
Jan 16, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VolumeGet/VolumeSet now work even if no file is playing.
parent
35a9a0d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
src/audio_output/intf.c
src/audio_output/intf.c
+8
-6
No files found.
src/audio_output/intf.c
View file @
a16b6c3c
...
...
@@ -2,7 +2,7 @@
* intf.c : audio output API towards the interface modules
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: intf.c,v 1.1
2 2003/01/15 11:27:29 massiot
Exp $
* $Id: intf.c,v 1.1
3 2003/01/16 13:22:30 hartman
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -67,10 +67,12 @@ int aout_VolumeGet( aout_instance_t * p_aout, audio_volume_t * pi_volume )
if
(
p_aout
->
mixer
.
b_error
)
{
int
i
;
/* The output module is destroyed. */
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
msg_Err
(
p_aout
,
"VolumeGet called without output module"
);
return
-
1
;
i
=
config_GetInt
(
p_aout
,
"volume"
);
if
(
pi_volume
!=
NULL
)
*
pi_volume
=
(
audio_volume_t
)
i
;
return
0
;
}
i_result
=
p_aout
->
output
.
pf_volume_get
(
p_aout
,
pi_volume
);
...
...
@@ -90,10 +92,11 @@ int aout_VolumeSet( aout_instance_t * p_aout, audio_volume_t i_volume )
if
(
p_aout
->
mixer
.
b_error
)
{
int
i
;
/* The output module is destroyed. */
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
msg_Err
(
p_aout
,
"VolumeSet called without output module"
);
return
-
1
;
config_PutInt
(
p_aout
,
"volume"
,
i_volume
);
return
0
;
}
i_result
=
p_aout
->
output
.
pf_volume_set
(
p_aout
,
i_volume
);
...
...
@@ -236,7 +239,6 @@ int aout_VolumeMute( aout_instance_t * p_aout, audio_volume_t * pi_volume )
if
(
p_aout
->
mixer
.
b_error
)
{
int
i
;
/* The output module is destroyed. */
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
config_PutInt
(
p_aout
,
"volume"
,
0
);
...
...
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