1
0
Fork 0
forked from len0rd/rockbox

Don't update playlist when no tracks in memory. Fixes looping bug when repeat shuffle is enabled in a directory that contains only invalid tracks

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6964 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Hardeep Sidhu 2005-07-01 12:06:30 +00:00
parent 71d2281d8b
commit c8ce78aa90

View file

@ -882,9 +882,13 @@ static void track_change(void)
/* Reset the AVC */
sound_set(SOUND_AVC, -1);
#endif /* #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) */
remove_current_tag();
update_playlist();
if (num_tracks_in_memory() > 0)
{
remove_current_tag();
update_playlist();
}
current_track_counter++;
}