diff options
-rw-r--r-- | apps/playlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index fc6b20307b..f645d662db 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -1002,7 +1002,7 @@ static int sort_playlist(struct playlist_info* playlist, bool start_current, | |||
1002 | /** We need to re-check the song names from disk because qsort can't | 1002 | /** We need to re-check the song names from disk because qsort can't |
1003 | * sort two arrays at once :/ | 1003 | * sort two arrays at once :/ |
1004 | * FIXME: Please implement a better way to do this. */ | 1004 | * FIXME: Please implement a better way to do this. */ |
1005 | memset(playlist->filenames, 0, playlist->max_playlist_size * sizeof(int)); | 1005 | memset(playlist->filenames, 0xff, playlist->max_playlist_size * sizeof(int)); |
1006 | queue_post(&playlist_queue, PLAYLIST_LOAD_POINTERS, 0); | 1006 | queue_post(&playlist_queue, PLAYLIST_LOAD_POINTERS, 0); |
1007 | #endif | 1007 | #endif |
1008 | 1008 | ||
@@ -1954,7 +1954,7 @@ void playlist_init(void) | |||
1954 | #ifdef HAVE_DIRCACHE | 1954 | #ifdef HAVE_DIRCACHE |
1955 | playlist->filenames = buffer_alloc( | 1955 | playlist->filenames = buffer_alloc( |
1956 | playlist->max_playlist_size * sizeof(int)); | 1956 | playlist->max_playlist_size * sizeof(int)); |
1957 | memset(playlist->filenames, 0, | 1957 | memset(playlist->filenames, 0xff, |
1958 | playlist->max_playlist_size * sizeof(int)); | 1958 | playlist->max_playlist_size * sizeof(int)); |
1959 | create_thread(playlist_thread, playlist_stack, sizeof(playlist_stack), | 1959 | create_thread(playlist_thread, playlist_stack, sizeof(playlist_stack), |
1960 | 0, playlist_thread_name IF_PRIO(, PRIORITY_BACKGROUND) | 1960 | 0, playlist_thread_name IF_PRIO(, PRIORITY_BACKGROUND) |