elementary: fix some source of nasty warning.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 4 Jul 2011 19:58:04 +0000 (19:58 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 4 Jul 2011 19:58:04 +0000 (19:58 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61020 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_video.c

index a9f00de..844557f 100644 (file)
@@ -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);