summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2006-04-20 05:56:34 +0000
committerHardeep Sidhu <dyp@pobox.com>2006-04-20 05:56:34 +0000
commit24f0a374c64d09de4e92e2b46e893671ab9deced (patch)
tree943edd2be73bd5c7f5f93f87489174ad96b18cb2
parentf635f4a8242b12de5ead18e526a5bc4cb0375663 (diff)
downloadrockbox-24f0a374c64d09de4e92e2b46e893671ab9deced.tar.gz
rockbox-24f0a374c64d09de4e92e2b46e893671ab9deced.tar.bz2
rockbox-24f0a374c64d09de4e92e2b46e893671ab9deced.zip
Fixed problem with forced reload of dircached filenames when playlist is sorted
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9738 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 985885c409..87bce59aab 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -941,6 +941,7 @@ static int sort_playlist(struct playlist_info* playlist, bool start_current,
/** We need to re-check the song names from disk because qsort can't
* sort two arrays at once :/
* FIXME: Please implement a better way to do this. */
+ memset(playlist->filenames, 0, playlist->max_playlist_size * sizeof(int));
queue_post(&playlist_queue, PLAYLIST_LOAD_POINTERS, 0);
#endif