From: Eunhae Choi Date: Fri, 7 Apr 2017 07:12:51 +0000 (+0900) Subject: [0.3.55] set evas visible FALSE when player_stop is called X-Git-Tag: accepted/tizen/unified/20170420.154838~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F125345%2F1;p=platform%2Fcore%2Fapi%2Fplayer.git [0.3.55] set evas visible FALSE when player_stop is called - and it is related to the backward compatibility Change-Id: I7ef6fb959fc25f2fb7ab8053c51e4ea3e4f0390f (cherry picked from commit 45948012eaf9eaec623888400782d9738ed1f2ff) --- diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index d3214c2..07d73c3 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -1,6 +1,6 @@ Name: capi-media-player Summary: A Media Player API -Version: 0.3.54 +Version: 0.3.55 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/player.c b/src/player.c index 23c2c11..6051b6b 100644 --- a/src/player.c +++ b/src/player.c @@ -2366,7 +2366,7 @@ int player_start(player_h player) LOGD("ENTER"); #ifdef TIZEN_FEATURE_EVAS_RENDERER - if (EVAS_HANDLE(pc) && EVAS_INFO(pc)->visible == EVAS_VISIBLE_NONE) { + if (CALLBACK_INFO(pc) && EVAS_HANDLE(pc) && EVAS_INFO(pc)->visible == EVAS_VISIBLE_NONE) { ret = mm_evas_renderer_set_visible(EVAS_HANDLE(pc), true); if (ret != MM_ERROR_NONE) { LOGE("mm_evas_renderer_set_visible err 0x%x", ret); @@ -2397,6 +2397,19 @@ int player_stop(player_h player) if (ret == PLAYER_ERROR_NONE) set_null_user_cb_lock(pc->cb_info, MUSE_PLAYER_EVENT_TYPE_SEEK); +#ifdef TIZEN_FEATURE_EVAS_RENDERER + if (ret != PLAYER_ERROR_INVALID_STATE) { + if (CALLBACK_INFO(pc) && EVAS_HANDLE(pc) && (EVAS_INFO(pc)->visible == EVAS_VISIBLE_TRUE)) { + ret = mm_evas_renderer_set_visible(EVAS_HANDLE(pc), false); + if (ret != MM_ERROR_NONE) { + LOGE("mm_evas_renderer_set_visible err 0x%x", ret); + return PLAYER_ERROR_INVALID_OPERATION; + } + /* do not update EVAS_INFO(pc)->visible to set visible true if start again */ + } + } +#endif + g_free(ret_buf); return ret; }