diff options
author | Daniel Zaoui <daniel.zaoui@yahoo.com> | 2016-09-25 13:11:32 +0300 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@yahoo.com> | 2016-09-25 13:11:32 +0300 |
commit | ae739184e10d1ba0f9ffb534cf54cdc7b0a7e061 (patch) | |
tree | 6dfa46d806faf19e0b1936445e27e843e8c57fba /src/lib/emotion/emotion_smart.c | |
parent | d8e6fb78207e3373f26db06fe7e9f3cc49f49a13 (diff) |
Emotion: modify the playback finish behavior as before
The callbacks are never invoked due to sd->play equal to 0. The
function _emotion_decode_stop is called before and resets this field.
Before the change to Efl.Canvas.Video, sd->play was not checked.
Diffstat (limited to '')
-rw-r--r-- | src/lib/emotion/emotion_smart.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c index e4ce471d56..3ec92c5fa8 100644 --- a/src/lib/emotion/emotion_smart.c +++ b/src/lib/emotion/emotion_smart.c | |||
@@ -1617,12 +1617,8 @@ _emotion_playback_finished(Evas_Object *obj) | |||
1617 | Efl_Canvas_Video_Data *sd; | 1617 | Efl_Canvas_Video_Data *sd; |
1618 | 1618 | ||
1619 | E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); | 1619 | E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); |
1620 | if (sd->play) | 1620 | efl_event_callback_call(obj, EFL_CANVAS_VIDEO_EVENT_PLAYBACK_STOP, NULL); |
1621 | { | 1621 | evas_object_smart_callback_call(obj, "playback_finished", NULL); |
1622 | sd->play = 0; | ||
1623 | efl_event_callback_call(obj, EFL_CANVAS_VIDEO_EVENT_PLAYBACK_STOP, NULL); | ||
1624 | evas_object_smart_callback_call(obj, "playback_finished", NULL); | ||
1625 | } | ||
1626 | } | 1622 | } |
1627 | 1623 | ||
1628 | EAPI void | 1624 | EAPI void |