Commit 3324f94e authored by Ludovic Fauvet's avatar Ludovic Fauvet

audio player: use filename as title if none is found

parent 5f589e7f
......@@ -478,6 +478,8 @@ update_player_display(audio_player* mpd)
{
if ((psz_meta = media_item_title(p_mi)) != NULL)
update_player_title_display(mpd, psz_meta);
else
update_player_title_display(mpd, basename(p_mi->psz_path));
if ((psz_meta = media_item_artist(p_mi)) != NULL)
update_player_artist_display(mpd, psz_meta);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment