From f6a66c7e8c2d56b6ec22e9a107349be63d5089db Mon Sep 17 00:00:00 2001 From: daleclack Date: Sat, 6 Apr 2024 13:46:24 +0800 Subject: [PATCH] Fix a issue for media player --- Gtk4_Reset/src/media_app/LyricsParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gtk4_Reset/src/media_app/LyricsParser.cpp b/Gtk4_Reset/src/media_app/LyricsParser.cpp index 479e657..7e8017f 100644 --- a/Gtk4_Reset/src/media_app/LyricsParser.cpp +++ b/Gtk4_Reset/src/media_app/LyricsParser.cpp @@ -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')