teamwork: pause media on closing
authorWonguk Jeong <wonguk.jeong@samsung.com>
Thu, 21 Aug 2014 16:51:32 +0000 (18:51 +0200)
committerWonguk Jeong <wonguk.jeong@samsung.com>
Thu, 21 Aug 2014 16:58:34 +0000 (18:58 +0200)
Due to stupid_obj_del_workaround_hack, sound comes out during 3sec
even if media has been disappeared. Although the 3sec workaround should be gone,
pause media on close to fix the side effect.

src/modules/teamwork/e_mod_tw.c

index 1a9e59d..dfb14fb 100644 (file)
@@ -857,6 +857,7 @@ tw_video_closed_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
 {
    evas_object_hide(obj);
    evas_object_hide(data);
+   emotion_object_play_set(obj, EINA_FALSE);
    ecore_timer_add(3.0, stupid_obj_del_workaround_hack, data);
    if (!tw_tmpfile) return;
    eina_stringshare_replace(&tw_tmpfile, NULL);