elementary: fix little mistake in elm_video.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 2 Jul 2011 12:23:47 +0000 (12:23 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 2 Jul 2011 12:23:47 +0000 (12:23 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@60939 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_video.c

index 0cdb6e4..a9f00de 100644 (file)
@@ -105,6 +105,7 @@ _del_hook(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
 
    if (!wd) return;
+   if (wd->timer) ecore_timer_del(wd->timer);
    free(wd);
 }
 
@@ -282,7 +283,7 @@ elm_video_add(Evas_Object *parent)
    wd->emotion = emotion_object_add(e);
    emotion_object_init(wd->emotion, NULL);
    edje_object_part_swallow(wd->layout, "elm.swallow.video", wd->emotion);
-   /* elm_widget_sub_object_add(obj, wd->emotion); */
+   elm_widget_sub_object_add(obj, wd->emotion);
 
    evas_object_smart_callback_add(wd->emotion, "open_done", _open_done, obj);
    evas_object_smart_callback_add(wd->emotion, "playback_started", _playback_started, obj);