diff options
author | Max Kellermann <max@duempel.org> | 2009-01-03 13:36:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-03 13:36:20 +0100 |
commit | 6ce06a48632cd603784bafdd16a67c723e80257d (patch) | |
tree | 1cffd2f3edfeeae6e188e060e2adbb8645afe358 /src | |
parent | 019bca247527e0fdd04532543d835742acf5a833 (diff) | |
download | mpd-6ce06a48632cd603784bafdd16a67c723e80257d.tar.gz mpd-6ce06a48632cd603784bafdd16a67c723e80257d.tar.xz mpd-6ce06a48632cd603784bafdd16a67c723e80257d.zip |
audio: use GLib instead of utils.h
Diffstat (limited to '')
-rw-r--r-- | src/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c index 17e63416a..fd01296b2 100644 --- a/src/audio.c +++ b/src/audio.c @@ -24,12 +24,12 @@ #include "path.h" #include "client.h" #include "idle.h" -#include "utils.h" #include "mixer.h" #include <glib.h> #include <assert.h> +#include <stdlib.h> #define AUDIO_DEVICE_STATE "audio_device_state:" #define AUDIO_BUFFER_SIZE 2*MPD_PATH_MAX @@ -61,7 +61,7 @@ void initAudioDriver(void) notify_init(&audio_output_client_notify); audioOutputArraySize = audio_output_count(); - audioOutputArray = xmalloc(sizeof(struct audio_output) * audioOutputArraySize); + audioOutputArray = g_new(struct audio_output, audioOutputArraySize); for (i = 0; i < audioOutputArraySize; i++) { |