forked from enlightenment/efl
edje_legacy: add validation check to return legacy default value
Summary: When invalid object comes, the return value should be EINA_FALSE. Reviewers: zmike, bu5hm4n, segfaultxavi Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10185
This commit is contained in:
parent
ddb28ccdf1
commit
3bdd50e412
|
@ -1208,6 +1208,7 @@ edje_object_play_set(Evas_Object *obj, Eina_Bool play)
|
|||
EAPI Eina_Bool
|
||||
edje_object_play_get(const Evas_Object *obj)
|
||||
{
|
||||
if (!efl_isa(obj, EFL_CANVAS_LAYOUT_CLASS)) return EINA_FALSE;
|
||||
return !efl_player_paused_get(obj);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue