aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-03 13:36:20 +0100
committerMax Kellermann <max@duempel.org>2009-01-03 13:36:20 +0100
commit6ce06a48632cd603784bafdd16a67c723e80257d (patch)
tree1cffd2f3edfeeae6e188e060e2adbb8645afe358
parent019bca247527e0fdd04532543d835742acf5a833 (diff)
downloadmpd-6ce06a48632cd603784bafdd16a67c723e80257d.tar.gz
mpd-6ce06a48632cd603784bafdd16a67c723e80257d.tar.xz
mpd-6ce06a48632cd603784bafdd16a67c723e80257d.zip
audio: use GLib instead of utils.h
-rw-r--r--src/audio.c4
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++)
{