From: cedric Date: Mon, 4 Jul 2011 19:58:04 +0000 (+0000) Subject: elementary: fix some source of nasty warning. X-Git-Tag: REL_F_I9500_20120323_1~17^2~2387 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c00b33dfa96a29eeef90575fb9ba43511e4849b3;p=framework%2Fuifw%2Felementary.git elementary: fix some source of nasty warning. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61020 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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);