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
This commit is contained in:
Wonguk Jeong 2014-08-19 16:21:22 +02:00
parent 162ad41656
commit d44d042645
1 changed files with 5 additions and 0 deletions

View File

@ -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));