fix dynamic wallpaper bug (#15927)

Signed-off-by: juno <juno@debian.debian>
Co-authored-by: juno <juno@debian.debian>
This commit is contained in:
baidxi 2023-11-19 21:52:50 +08:00 committed by GitHub
parent 46402732ba
commit ee417c0f75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1153,9 +1153,12 @@ static char* xmb_path_dynamic_wallpaper(xmb_handle_t *xmb)
path[++len] = '\0';
/* Do not update wallpaper in "Load Content" playlists */
if ( (xmb->categories_selection_ptr == 0 && depth > 4)
|| (xmb->categories_selection_ptr > xmb->system_tab_end && depth > 1))
if ((xmb->categories_selection_ptr == 0 && depth > 4)
|| (xmb->categories_selection_ptr > xmb->system_tab_end && depth > 1)) {
if (string_is_empty(xmb->bg_file_path))
return NULL;
return strdup(xmb->bg_file_path);
}
if (!path_is_valid(path))
fill_pathname_application_special(path, sizeof(path),