Emotion generic: check if player is the expected on _player_del_cb

SVN revision: 69438
This commit is contained in:
Bruno Dilly 2012-03-15 21:57:38 +00:00
parent 7e84213ab0
commit a15108fbd6
1 changed files with 9 additions and 0 deletions

View File

@ -862,7 +862,16 @@ _player_add_cb(void *data, int type __UNUSED__, void *event)
static Eina_Bool
_player_del_cb(void *data, int type __UNUSED__, void *event __UNUSED__)
{
Ecore_Exe_Event_Del *event_del = event;
Ecore_Exe *player = event_del->exe;
Emotion_Generic_Video *ev = data;
if (ev->player.exe != player)
{
INF("ev->player != player.");
return ECORE_CALLBACK_PASS_ON;
}
ERR("player died.");
ev->player.exe = NULL;