summaryrefslogtreecommitdiff
path: root/legacy/emotion/src
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-03-15 21:57:38 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-03-15 21:57:38 +0000
commita15108fbd68ff9eef243e4e8c2c88087e6df24f2 (patch)
tree5c045f00ee441615966f8b4d8b27b28cadce2756 /legacy/emotion/src
parent7e84213ab021f50367ec6bdb17dff8ded6443700 (diff)
Emotion generic: check if player is the expected on _player_del_cb
SVN revision: 69438
Diffstat (limited to 'legacy/emotion/src')
-rw-r--r--legacy/emotion/src/modules/generic/emotion_generic.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/legacy/emotion/src/modules/generic/emotion_generic.c b/legacy/emotion/src/modules/generic/emotion_generic.c
index 4c2c6fb136..0e1690cb87 100644
--- a/legacy/emotion/src/modules/generic/emotion_generic.c
+++ b/legacy/emotion/src/modules/generic/emotion_generic.c
@@ -862,7 +862,16 @@ _player_add_cb(void *data, int type __UNUSED__, void *event)
862static Eina_Bool 862static Eina_Bool
863_player_del_cb(void *data, int type __UNUSED__, void *event __UNUSED__) 863_player_del_cb(void *data, int type __UNUSED__, void *event __UNUSED__)
864{ 864{
865 Ecore_Exe_Event_Del *event_del = event;
866 Ecore_Exe *player = event_del->exe;
865 Emotion_Generic_Video *ev = data; 867 Emotion_Generic_Video *ev = data;
868
869 if (ev->player.exe != player)
870 {
871 INF("ev->player != player.");
872 return ECORE_CALLBACK_PASS_ON;
873 }
874
866 ERR("player died."); 875 ERR("player died.");
867 876
868 ev->player.exe = NULL; 877 ev->player.exe = NULL;