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