From: Gilbok Lee Date: Thu, 17 Mar 2016 08:55:16 +0000 (+0900) Subject: Didn't make tbm_bo when content didn't include album art X-Git-Tag: accepted/tizen/common/20160317.161532^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=521d532c741b7f0876e0db8984bcd5627440683a;p=platform%2Fcore%2Fmultimedia%2Fmmsvc-player.git Didn't make tbm_bo when content didn't include album art Change-Id: I93883401e39d488fd1b252e317d9a09eb57ef698 Signed-off-by: Gilbok Lee --- diff --git a/muse/src/muse_player.c b/muse/src/muse_player.c index 1bf0fab..d91fa4e 100644 --- a/muse/src/muse_player.c +++ b/muse/src/muse_player.c @@ -1374,7 +1374,7 @@ int player_disp_get_album_art(muse_module_h module) handle = muse_core_ipc_get_handle(module); ret = legacy_player_get_album_art((player_h)handle, &album_art, &size); - if (ret == PLAYER_ERROR_NONE) { + if (ret == PLAYER_ERROR_NONE && size > 0) { bo = tbm_bo_alloc(bufmgr, size+1, TBM_BO_DEFAULT); if (!bo) { LOGE("TBM get error : tbm_bo_alloc return NULL"); @@ -1411,6 +1411,9 @@ int player_disp_get_album_art(muse_module_h module) tbm_bo_unmap(bo); } tbm_bo_unref(bo); + } else if (ret == PLAYER_ERROR_NONE) { + LOGD("album art size is zero, didn't make tbm_bo"); + player_msg_return2(api, ret, module, INT, size, INT, 0); } else player_msg_return(api, ret, module);