summaryrefslogtreecommitdiff
path: root/plugins/flac/flac.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/flac/flac.c')
-rw-r--r--plugins/flac/flac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c
index 776e3e95..11f8cfe3 100644
--- a/plugins/flac/flac.c
+++ b/plugins/flac/flac.c
@@ -191,6 +191,7 @@ cflac_init (DB_playItem_t *it) {
plugin.free ();
return -1;
}
+ buffer = malloc (BUFFERSIZE);
if (it->endsample > 0) {
startsample = it->startsample;
endsample = it->endsample;
@@ -208,7 +209,6 @@ cflac_init (DB_playItem_t *it) {
}
remaining = 0;
- buffer = malloc (BUFFERSIZE);
return 0;
}