Fix playlist sublabels

This commit is contained in:
jdgleaver 2020-02-24 10:22:44 +00:00
parent 0c17faa78f
commit 27c5ffeb76
1 changed files with 20 additions and 26 deletions

View File

@ -1102,14 +1102,12 @@ static int action_bind_sublabel_playlist_entry(
!string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_HORIZONTAL_MENU)))
return 0;
switch (entry->runtime_status)
{
case PLAYLIST_RUNTIME_UNKNOWN:
/* Check whether runtime info should be loaded from log file */
if (entry->runtime_status == PLAYLIST_RUNTIME_UNKNOWN)
runtime_update_playlist(playlist, i);
break;
case PLAYLIST_RUNTIME_VALID:
/* Check whether runtime info is valid */
if (entry->runtime_status == PLAYLIST_RUNTIME_VALID)
{
int n = 0;
char tmp[64];
@ -1132,10 +1130,6 @@ static int action_bind_sublabel_playlist_entry(
if (!string_is_empty(tmp))
strlcat(s, tmp, len);
}
break;
default:
break;
}
return 0;
}