output_control: no static "notify" initialization

Don't use NOTIFY_INITIALIZER to initialize audio_output_client_notify.
This commit is contained in:
Max Kellermann 2008-12-27 20:53:52 +01:00
parent b2fc0ee274
commit e8c44782d0
2 changed files with 5 additions and 1 deletions

View File

@ -56,6 +56,8 @@ void initAudioDriver(void)
ConfigParam *param = NULL; ConfigParam *param = NULL;
unsigned int i; unsigned int i;
notify_init(&audio_output_client_notify);
audioOutputArraySize = audio_output_count(); audioOutputArraySize = audio_output_count();
audioOutputArray = xmalloc(sizeof(struct audio_output) * audioOutputArraySize); audioOutputArray = xmalloc(sizeof(struct audio_output) * audioOutputArraySize);
@ -182,6 +184,8 @@ void finishAudioDriver(void)
free(audioOutputArray); free(audioOutputArray);
audioOutputArray = NULL; audioOutputArray = NULL;
audioOutputArraySize = 0; audioOutputArraySize = 0;
notify_deinit(&audio_output_client_notify);
} }
bool bool

View File

@ -26,7 +26,7 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
struct notify audio_output_client_notify = NOTIFY_INITIALIZER; struct notify audio_output_client_notify;
static void ao_command_wait(struct audio_output *ao) static void ao_command_wait(struct audio_output *ao)
{ {