Fix crash that can occur with Discord netplay
This commit is contained in:
parent
3f1a516696
commit
b998bda5a1
|
@ -353,7 +353,9 @@ void discord_update(enum discord_presence presence)
|
||||||
{
|
{
|
||||||
playlist_get_index_by_path(
|
playlist_get_index_by_path(
|
||||||
current_playlist, path_get(RARCH_PATH_CONTENT), &entry);
|
current_playlist, path_get(RARCH_PATH_CONTENT), &entry);
|
||||||
label = entry->label;
|
|
||||||
|
if (entry && !string_is_empty(entry->label))
|
||||||
|
label = entry->label;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!label)
|
if (!label)
|
||||||
|
|
Loading…
Reference in New Issue