This needs to happen in an idle task since the track database is loaded when idle. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
The pl_library_init() function is used to allocate a playlist for each library path already in the database, and pl_library_deinit() is then used to free this memory during cleanup. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>