Fix crash of media player

This commit is contained in:
daleclack 2024-04-04 15:22:14 +08:00
parent 7aaf3d0b6a
commit 400bd1b9f2
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ static void get_lyrics_line(const char *lyrics, char *lyrics_line1, gboolean res
return;
}
if (lyrics_loaded)
if (lyrics_loaded && lyrics)
{
// Find the '\n'
while (lyrics[end_pos] != '\n' && lyrics[end_pos] != '\0')