From 58df9433e71456d405ffe157fd7c64c605e150aa Mon Sep 17 00:00:00 2001 From: cedric Date: Mon, 4 Jul 2011 19:58:04 +0000 Subject: [PATCH] elementary: fix some source of nasty warning. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61020 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_video.c b/src/lib/elm_video.c index a9f00de..844557f 100644 --- a/src/lib/elm_video.c +++ b/src/lib/elm_video.c @@ -366,7 +366,7 @@ elm_video_play(Evas_Object *video) if (emotion_object_play_get(wd->emotion)) return ; - ecore_timer_del(wd->timer); + if (wd->timer) ecore_timer_del(wd->timer); wd->timer = NULL; wd->stop = EINA_FALSE; emotion_object_play_set(wd->emotion, EINA_TRUE); @@ -407,7 +407,7 @@ elm_video_stop(Evas_Object *video) if (!emotion_object_play_get(wd->emotion) && wd->stop) return ; - ecore_timer_del(wd->timer); + if (wd->timer) ecore_timer_del(wd->timer); wd->timer = NULL; wd->stop = EINA_TRUE; emotion_object_play_set(wd->emotion, EINA_FALSE); -- 2.7.4