From: RĂ©mi Duraffort Date: Mon, 15 Jun 2009 08:25:02 +0000 (+0200) Subject: Fix a segfault when using "Shift+a" with dummy audio output. X-Git-Tag: 1.1.0-ff~5438 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=94ca05ff5b10347cc37d21ed74d488eb3007218c;p=vlc 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. --- diff --git a/modules/misc/dummy/aout.c b/modules/misc/dummy/aout.c index e648a335d2..4d6c247fe0 100644 --- a/modules/misc/dummy/aout.c +++ b/modules/misc/dummy/aout.c @@ -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; } /*****************************************************************************