output_control: no static "notify" initialization
Don't use NOTIFY_INITIALIZER to initialize audio_output_client_notify.
This commit is contained in:
parent
b2fc0ee274
commit
e8c44782d0
|
@ -56,6 +56,8 @@ void initAudioDriver(void)
|
|||
ConfigParam *param = NULL;
|
||||
unsigned int i;
|
||||
|
||||
notify_init(&audio_output_client_notify);
|
||||
|
||||
audioOutputArraySize = audio_output_count();
|
||||
audioOutputArray = xmalloc(sizeof(struct audio_output) * audioOutputArraySize);
|
||||
|
||||
|
@ -182,6 +184,8 @@ void finishAudioDriver(void)
|
|||
free(audioOutputArray);
|
||||
audioOutputArray = NULL;
|
||||
audioOutputArraySize = 0;
|
||||
|
||||
notify_deinit(&audio_output_client_notify);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <assert.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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue