Rename a function for gtk154
This commit is contained in:
parent
cdafcc5c1e
commit
35ba165ddd
|
@ -150,7 +150,7 @@ static void get_lyrics_line(const char *lyrics, char *lyrics_line1, gboolean res
|
|||
}
|
||||
|
||||
// Update lyrics
|
||||
void update_lyrics(MyMediaPlayer *player)
|
||||
void load_lyrics(MyMediaPlayer *player)
|
||||
{
|
||||
// Get position between filename and extension
|
||||
int point_pos;
|
||||
|
@ -365,7 +365,7 @@ static gboolean get_media_stream_status(MyMediaPlayer *player,
|
|||
if (timestamp == 0 && !lyrics_updated && !lyrics_loaded)
|
||||
{
|
||||
// Load lyrics when a new media loaded
|
||||
update_lyrics(player);
|
||||
load_lyrics(player);
|
||||
}
|
||||
|
||||
if (get_media_playing(timestamp, stream, player))
|
||||
|
|
|
@ -6,4 +6,4 @@
|
|||
gboolean lyric_time_func(gpointer data);
|
||||
|
||||
// Update lyrics file when a music will play
|
||||
void update_lyrics(MyMediaPlayer *player);
|
||||
void load_lyrics(MyMediaPlayer *player);
|
||||
|
|
|
@ -262,7 +262,7 @@ static void load_audio(MyItem *item, MyMediaPlayer *player)
|
|||
g_free(label_str);
|
||||
|
||||
// Force update lyrics file
|
||||
update_lyrics(player);
|
||||
load_lyrics(player);
|
||||
|
||||
// Enable control button
|
||||
gtk_widget_set_sensitive(player->btn_play, TRUE);
|
||||
|
|
Loading…
Reference in New Issue