From 6be390f21091ac3438d4ddb7935d985f2e4286ab Mon Sep 17 00:00:00 2001 From: Robert Kukla Date: Sun, 4 Nov 2007 23:58:23 +0000 Subject: [PATCH] make initialisation of buffer/unbuffer call backs consistent with FS#6639 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15464 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/firmware/mpeg.c b/firmware/mpeg.c index c09ef38376..693e2df480 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -118,8 +118,8 @@ static int track_write_idx = 0; /* Callback function to call when current track has really changed. */ void (*track_changed_callback)(struct mp3entry *id3) = NULL; -void (*track_buffer_callback)(struct mp3entry *id3); -void (*track_unbuffer_callback)(struct mp3entry *id3); +void (*track_buffer_callback)(struct mp3entry *id3) = NULL; +void (*track_unbuffer_callback)(struct mp3entry *id3) = NULL; /* Cuesheet callback */ static bool (*cuesheet_callback)(const char *filename) = NULL; @@ -2874,8 +2874,6 @@ static void mpeg_thread(void) void audio_init(void) { mpeg_errno = 0; - track_buffer_callback = NULL; - track_unbuffer_callback = NULL; #ifndef SIMULATOR audiobuflen = audiobufend - audiobuf;