Try to have a more robust fallback path for

menu_displaylist_parse_generic
This commit is contained in:
twinaphex 2018-01-12 04:02:14 +01:00
parent a5e35e7193
commit af12858953

View File

@ -1252,15 +1252,12 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
size_t selection = menu_navigation_get_selection();
if (!playlist)
return -1;
goto error;
list_size = playlist_size(playlist);
if (list_size == 0)
{
info->need_push_no_playlist_entries = true;
return 0;
}
goto error;
if (!string_is_empty(info->path))
{
@ -1358,6 +1355,10 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
}
return 0;
error:
info->need_push_no_playlist_entries = true;
return 0;
}
static int menu_displaylist_parse_shader_options(menu_displaylist_info_t *info)