Fix a issue for media player

This commit is contained in:
daleclack 2024-04-06 13:46:24 +08:00
parent b2cb688217
commit f6a66c7e8c
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; return;
} }
if (lyrics_loaded) if (lyrics_loaded && lyrics)
{ {
// Find the '\n' // Find the '\n'
while (lyrics[end_pos] != '\n' && lyrics[end_pos] != '\0') while (lyrics[end_pos] != '\n' && lyrics[end_pos] != '\0')