aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_resample_libsamplerate.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-03 14:52:13 +0100
committerMax Kellermann <max@duempel.org>2009-01-03 14:52:13 +0100
commitd342e338db085e8e8f6eded2aef48c7ca41239ae (patch)
treef5d4af05f24521bf72f8aad87e665c73e9e7c575 /src/pcm_resample_libsamplerate.c
parent962f2407d2a3579b7125f937d93d04ccbeb9a453 (diff)
downloadmpd-d342e338db085e8e8f6eded2aef48c7ca41239ae.tar.gz
mpd-d342e338db085e8e8f6eded2aef48c7ca41239ae.tar.xz
mpd-d342e338db085e8e8f6eded2aef48c7ca41239ae.zip
pcm: use GLib instead of utils.h
Diffstat (limited to '')
-rw-r--r--src/pcm_resample_libsamplerate.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pcm_resample_libsamplerate.c b/src/pcm_resample_libsamplerate.c
index 1a3656cc4..95d7e5d7f 100644
--- a/src/pcm_resample_libsamplerate.c
+++ b/src/pcm_resample_libsamplerate.c
@@ -19,7 +19,6 @@
#include "pcm_resample.h"
#include "conf.h"
-#include "utils.h"
#include <glib.h>
@@ -131,14 +130,14 @@ pcm_resample_16(uint8_t channels,
data_in_size = data->input_frames * sizeof(float) * channels;
if (data_in_size > state->data_in_size) {
state->data_in_size = data_in_size;
- data->data_in = xrealloc(data->data_in, data_in_size);
+ data->data_in = g_realloc(data->data_in, data_in_size);
}
data->output_frames = dest_size / sizeof(*dest_buffer) / channels;
data_out_size = data->output_frames * sizeof(float) * channels;
if (data_out_size > state->data_out_size) {
state->data_out_size = data_out_size;
- data->data_out = xrealloc(data->data_out, data_out_size);
+ data->data_out = g_realloc(data->data_out, data_out_size);
}
src_short_to_float_array(src_buffer, data->data_in,
@@ -204,14 +203,14 @@ pcm_resample_24(uint8_t channels,
data_in_size = data->input_frames * sizeof(float) * channels;
if (data_in_size > state->data_in_size) {
state->data_in_size = data_in_size;
- data->data_in = xrealloc(data->data_in, data_in_size);
+ data->data_in = g_realloc(data->data_in, data_in_size);
}
data->output_frames = dest_size / sizeof(*dest_buffer) / channels;
data_out_size = data->output_frames * sizeof(float) * channels;
if (data_out_size > state->data_out_size) {
state->data_out_size = data_out_size;
- data->data_out = xrealloc(data->data_out, data_out_size);
+ data->data_out = g_realloc(data->data_out, data_out_size);
}
src_int_to_float_array(src_buffer, data->data_in,