Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
44c25d29
Commit
44c25d29
authored
Jul 10, 2011
by
Rémi Denis-Courmont
Browse files
libvlc_audio_output_set: really force the requested output
parent
629dbd8a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/control/audio.c
View file @
44c25d29
...
@@ -133,9 +133,13 @@ void libvlc_audio_output_list_release( libvlc_audio_output_t *p_list )
...
@@ -133,9 +133,13 @@ void libvlc_audio_output_list_release( libvlc_audio_output_t *p_list )
***********************/
***********************/
int
libvlc_audio_output_set
(
libvlc_media_player_t
*
mp
,
const
char
*
psz_name
)
int
libvlc_audio_output_set
(
libvlc_media_player_t
*
mp
,
const
char
*
psz_name
)
{
{
if
(
!
module_exists
(
psz_name
)
)
char
*
value
;
if
(
!
module_exists
(
psz_name
)
||
asprintf
(
&
value
,
"%s,none"
,
psz_name
)
==
-
1
)
return
-
1
;
return
-
1
;
var_SetString
(
mp
,
"aout"
,
psz_name
);
var_SetString
(
mp
,
"aout"
,
value
);
free
(
value
);
return
0
;
return
0
;
}
}
...
...
Write
Preview
Supports
Markdown
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