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:
WooHyun Jung 2019-09-26 08:59:31 -04:00 committed by Mike Blumenkrantz
parent ddb28ccdf1
commit 3bdd50e412
1 changed files with 1 additions and 0 deletions

View File

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