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:
parent
71d2281d8b
commit
c8ce78aa90
1 changed files with 6 additions and 2 deletions
|
@ -882,9 +882,13 @@ static void track_change(void)
|
||||||
/* Reset the AVC */
|
/* Reset the AVC */
|
||||||
sound_set(SOUND_AVC, -1);
|
sound_set(SOUND_AVC, -1);
|
||||||
#endif /* #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) */
|
#endif /* #if (CONFIG_HWCODEC == MAS3587F) || (CONFIG_HWCODEC == MAS3539F) */
|
||||||
remove_current_tag();
|
|
||||||
|
|
||||||
|
if (num_tracks_in_memory() > 0)
|
||||||
|
{
|
||||||
|
remove_current_tag();
|
||||||
update_playlist();
|
update_playlist();
|
||||||
|
}
|
||||||
|
|
||||||
current_track_counter++;
|
current_track_counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue