From: Cedric BAIL Date: Mon, 4 Jul 2011 19:58:04 +0000 (+0000) Subject: elementary: fix some source of nasty warning. X-Git-Tag: v1.0.0~2644 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=517f40e713dde0e5251d5eaebb9e38d59b25de71;p=platform%2Fupstream%2Felementary.git elementary: fix some source of nasty warning. SVN revision: 61020 --- 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);