Commit 7e399104 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix a segfault when using "Shift+a" with dummy audio output.

This segfault happend because :
 * the variable "audio-device" wasn't created
 * hotkeys module (and others) expect the variable to exist.
(cherry picked from commit 94ca05ff)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 3d002d51
...@@ -62,7 +62,11 @@ int OpenAudio ( vlc_object_t * p_this ) ...@@ -62,7 +62,11 @@ int OpenAudio ( vlc_object_t * p_this )
{ {
p_aout->output.i_nb_samples = FRAME_SIZE; p_aout->output.i_nb_samples = FRAME_SIZE;
} }
return 0;
/* Create the variable for the audio-device */
var_Create( p_aout, "audio-device", VLC_VAR_INTEGER | VLC_VAR_HASCHOICE );
return VLC_SUCCESS;
} }
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment