iOS/tvOS: When updating playlist with detected core path, used resolved core path (#15372)

This commit is contained in:
Eric Warmenhoven 2023-06-13 01:52:39 -04:00 committed by GitHub
parent 6b9727911b
commit 7b263461da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2646,17 +2646,19 @@ static int action_ok_playlist_entry_collection(const char *path,
return ret;
}
/* Cache core path */
strlcpy(core_path, core_info->path, sizeof(core_path));
/* Update playlist entry */
update_entry.core_path = core_info->path;
strlcpy(core_path, core_info->path, sizeof(core_path));
playlist_resolve_path(PLAYLIST_SAVE, true, core_path, sizeof(core_path));
update_entry.core_path = core_path;
update_entry.core_name = core_info->display_name;
command_playlist_update_write(
playlist,
selection_ptr,
&update_entry);
/* Cache core path */
strlcpy(core_path, core_info->path, sizeof(core_path));
}
else
{