Skip to content

Commit

Permalink
Crash when pressing B button on playlists #16951 (#16971)
Browse files Browse the repository at this point in the history
* Added check for null thumbnail path.  Applies to 16951

* Moved null check up the code to cover multiple accesses to the thumbnail path.

* Checked for null values before trying to get logo icons for playlists

* Rolled back the thumbnail_path_gfx changes and instead added
deinitialization of the icon thumbnails when a list was not a playlist.
  • Loading branch information
jbreitweiser authored Sep 10, 2024
1 parent 364d977 commit d4e5f7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions menu/drivers/xmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2958,9 +2958,14 @@ static void xmb_populate_entries(void *data,

xmb_set_title(xmb);

if(xmb->is_playlist && settings->uints.menu_icon_thumbnails)
if(xmb->is_playlist)
{
xmb_populate_dynamic_icons(xmb);
if(settings->uints.menu_icon_thumbnails)
xmb_populate_dynamic_icons(xmb);
}
else if(xmb->thumbnails.pending_icons != XMB_PENDING_THUMBNAIL_NONE )
{
xmb_unload_icon_thumbnail_textures(xmb);
}

if (xmb->allow_dynamic_wallpaper)
Expand Down

0 comments on commit d4e5f7a

Please sign in to comment.