1
0
Fork 0
forked from len0rd/rockbox

NEXT and PREV now works again

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1458 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-07-27 00:31:38 +00:00
parent 96763eadce
commit ab042e6e51

View file

@ -228,7 +228,6 @@ static void remove_all_tags(void)
#endif #endif
#ifndef SIMULATOR #ifndef SIMULATOR
static int last_tag = 0;
static int last_dma_tick = 0; static int last_dma_tick = 0;
static int pause_tick = 0; static int pause_tick = 0;
@ -710,11 +709,12 @@ static void mpeg_thread(void)
stop_dma(); stop_dma();
reset_mp3_buffer(); reset_mp3_buffer();
remove_all_tags();
/* Open the next file */ /* Open the next file */
if (mpeg_file >= 0) if (mpeg_file >= 0)
close(mpeg_file); close(mpeg_file);
last_tag=0;
if (new_file(true) < 0) { if (new_file(true) < 0) {
DEBUGF("No more files to play\n"); DEBUGF("No more files to play\n");
filling = false; filling = false;
@ -739,10 +739,12 @@ static void mpeg_thread(void)
stop_dma(); stop_dma();
reset_mp3_buffer(); reset_mp3_buffer();
remove_all_tags();
/* Open the next file */ /* Open the next file */
if (mpeg_file >= 0) if (mpeg_file >= 0)
close(mpeg_file); close(mpeg_file);
last_tag=0;
if (new_file(false) < 0) { if (new_file(false) < 0) {
DEBUGF("No more files to play\n"); DEBUGF("No more files to play\n");
filling = false; filling = false;