huchi pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d44d042645d8abc4c07e7a59a0b21c773d07e3f7

commit d44d042645d8abc4c07e7a59a0b21c773d07e3f7
Author: Wonguk Jeong <[email protected]>
Date:   Tue Aug 19 16:21:22 2014 +0200

    teamwork: fix shadow frame during previewing .ogg
    
    if the frame size is invalid on "frame_decode", stop previewing.
    It will filter out audio or invalid video previewing
    
    Fixes T1400
---
 src/modules/teamwork/e_mod_tw.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/modules/teamwork/e_mod_tw.c b/src/modules/teamwork/e_mod_tw.c
index 942e0a0..8a93df9 100644
--- a/src/modules/teamwork/e_mod_tw.c
+++ b/src/modules/teamwork/e_mod_tw.c
@@ -876,6 +876,11 @@ tw_video_opened_cb(void *data, Evas_Object *obj, void 
*event_info EINA_UNUSED)
         return;
      }
    emotion_object_size_get(obj, &iw, &ih);
+   if ((iw <= 0) || (ih <= 0))
+     {
+        tw_video_closed_cb(data, obj, NULL);
+        return;
+     }
 
    zone = e_zone_current_get(e_util_comp_current_get());
    w = MIN(zone->w, (ratio * (double)zone->w));

-- 


Reply via email to