From: Wonguk Jeong Date: Thu, 24 Apr 2014 09:10:10 +0000 (+0900) Subject: emotion: play set before file open callback bug fix X-Git-Tag: v1.10.0-alpha1~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd587ba43b8ac340d79f2a092bdfab76a7211198;p=platform%2Fupstream%2Fefl.git emotion: play set before file open callback bug fix Summary: Before "open_done" callback, play unset is ineffective. is it intentional logic? if we set play and unset play again before "open_done" callback, the video will be played. @fix Reviewers: raster, cedric CC: seoz, cedric Differential Revision: https://phab.enlightenment.org/D786 --- diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c index 182560e..7ec603b 100644 --- a/src/lib/emotion/emotion_smart.c +++ b/src/lib/emotion/emotion_smart.c @@ -661,13 +661,13 @@ emotion_object_play_set(Evas_Object *obj, Eina_Bool play) E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); DBG("play=" FMT_UCHAR ", was=" FMT_UCHAR, play, sd->play); - if (play == sd->play) return; if (!sd->engine_instance) return; if (!sd->open) { sd->remember_play = play; return; } + if (play == sd->play) return; sd->play = play; sd->remember_play = play; if (sd->state != EMOTION_WAKEUP) emotion_object_suspend_set(obj, EMOTION_WAKEUP);