summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-05-09 09:36:58 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-05-09 09:36:58 +0000
commit30c338a4c156bbe7b26fe7942dbd789518fd7818 (patch)
tree10542dc8a4679bbe0585c45867a1959cfd0433f1
parent3eb82028d15d5545ea119f5f774c150706eca941 (diff)
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
-rw-r--r--firmware/mpeg.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index bf0512dfc2..296ef1440d 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;