Browse Source

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>
keep-around/be3b78838000be6667e8ae1a012882a39760dfb3
Anna 5 years ago
parent
commit
be3b788380
2 changed files with 5 additions and 4 deletions
  1. +1
    -0
      CHANGELOG
  2. +4
    -4
      core/playlists/system.c

+ 1
- 0
CHANGELOG View File

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


+ 4
- 4
core/playlists/system.c View File

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


Loading…
Cancel
Save