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
This commit is contained in:
Robert Kukla 2007-11-04 23:58:23 +00:00
parent ca1b920896
commit 6be390f210

View file

@ -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;