music-control: do not crash when no config is selected

this is a fresh config crash.
This commit is contained in:
Marcel Hollerbach 2021-11-02 17:10:46 +01:00
parent 3bfb563679
commit e64e7d77c6
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ _player_name_update(E_Music_Control_Instance *inst)
{
Edje_Message_String msg;
msg.str = (char *)music_player_players[inst->ctxt->config->player_selected].name;
EINA_SAFETY_ON_NULL_RETURN(msg.str);
edje_object_message_send(inst->content_popup, EDJE_MESSAGE_STRING, 0, &msg);
}