From 30c338a4c156bbe7b26fe7942dbd789518fd7818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohensohn?= Date: Sun, 9 May 2004 09:36:58 +0000 Subject: Prevent spurious bitswapping of the mp3 buffer: stop_playing() now calls reset_mp3_buffer() and so makes sure the bitswap ends. (This was the reason for the failing voice UI after playback!) I also removed a few lines of redundant code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4597 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/firmware/mpeg.c b/firmware/mpeg.c index bf0512d..296ef14 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -821,6 +821,7 @@ static void stop_playing(void) close(mpeg_file); mpeg_file = -1; remove_all_tags(); + reset_mp3_buffer(); } static void update_playlist(void) @@ -2042,14 +2043,6 @@ static void init_recording(void) is_playing = false; paused = false; - reset_mp3_buffer(); - - remove_all_tags(); - - if(mpeg_file >= 0) - close(mpeg_file); - mpeg_file = -1; - /* Init the recording variables */ is_recording = false; is_prerecording = false; -- cgit v1.1