core/playlists/system: Don't read 6.4.x playlists in new idle tasks

Track database defragmenting can happen before the new tasks are ever
scheduled, causing a crash when we try to find tracks with changed IDs.
After the crash, the Favorites and Hidden playlist data appears to be
lost.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2016-10-21 11:31:11 -04:00
parent 9df093ec85
commit be3b788380
2 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,7 @@
- Fix showing the first playlist in the list - Fix showing the first playlist in the list
- Fix memory leaks in core/ - Fix memory leaks in core/
- Fix theme parsing errors - Fix theme parsing errors
- Fix crash while reading 6.4.x playlists
6.5.0-rc: 6.5.0-rc:
- Convert to CMake/CTest - Convert to CMake/CTest

View File

@ -422,10 +422,10 @@ static bool __sys_pl_load_new()
gchar *name; gchar *name;
if (!file_open(&sys_pl_file, OPEN_READ)) { if (!file_open(&sys_pl_file, OPEN_READ)) {
idle_schedule(IDLE_SYNC, __sys_pl_load, NULL); __sys_pl_load();
idle_schedule(IDLE_SYNC, sys_pl_collection_load, NULL); sys_pl_collection_load();
idle_schedule(IDLE_SYNC, sys_pl_queued_load, NULL); sys_pl_queued_load();
idle_schedule(IDLE_SYNC, __sys_pl_update_save, NULL); __sys_pl_update_save();
return true; return true;
} }