e/music_control: Allow an action to toggle between play and pause.

We offer the play pause action but did only do the pause. Now we allow
toggling the state.
This commit is contained in:
Stefan Schmidt 2013-02-22 11:05:08 +00:00
parent ea3f93025b
commit 26d32a34b2
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ _music_control(E_Object *obj, const char *params)
EINA_SAFETY_ON_NULL_RETURN(music_control_mod->data);
ctxt = music_control_mod->data;
if (!strcmp(params, "play"))
media_player2_player_pause_call(ctxt->mpris2_player);
media_player2_player_play_pause_call(ctxt->mpris2_player);
else if (!strcmp(params, "next"))
media_player2_player_next_call(ctxt->mpris2_player);
else if (!strcmp(params, "previous"))