Commit 94ca05ff 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.
parent 4ef9c9fd
......@@ -62,7 +62,11 @@ int OpenAudio ( vlc_object_t * p_this )
{
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