Commit 98620e3f authored by Thomas Guillem's avatar Thomas Guillem

playback_service: display filename if there is meta

parent 28c6d479
......@@ -141,7 +141,7 @@ ps_notification_update_meta(playback_service *p_ps, media_item *p_mi)
else if (psz_meta_artist)
notification_set_text(p_ps->p_notification, NOTIFICATION_TEXT_TYPE_TITLE, psz_meta_artist, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
else
notification_set_text(p_ps->p_notification, NOTIFICATION_TEXT_TYPE_TITLE, "Unknown media", NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
notification_set_text(p_ps->p_notification, NOTIFICATION_TEXT_TYPE_TITLE, media_item_get_filename(p_mi), NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
if (psz_meta_title && psz_meta_artist)
notification_set_text(p_ps->p_notification, NOTIFICATION_TEXT_TYPE_CONTENT, psz_meta_artist, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
......
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