From 900f291c731961d8a2c770095fea4879c79c031b Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Mon, 24 Oct 2016 19:17:14 +0900 Subject: [PATCH] [v0.6.6] fix video resource acquire fail issue when resource conflict Change-Id: I427a13d07c61d3df6b8a32768a71a08593554f0b --- packaging/libmm-player.spec | 2 +- src/mm_player_priv.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/libmm-player.spec b/packaging/libmm-player.spec index 4afa617..346d839 100644 --- a/packaging/libmm-player.spec +++ b/packaging/libmm-player.spec @@ -1,6 +1,6 @@ Name: libmm-player Summary: Multimedia Framework Player Library -Version: 0.6.5 +Version: 0.6.6 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index b919784..d3c447b 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -9063,7 +9063,8 @@ _mmplayer_unrealize(MMHandleType hplayer) if (ret != MM_ERROR_NONE) LOGE("failed to release sound focus, ret(0x%x)\n", ret); - if (_mmplayer_resource_manager_get_state(&player->resource_manager, &resource_state) == MM_ERROR_NONE) { + if (!player->resource_manager.by_rm_cb && + _mmplayer_resource_manager_get_state(&player->resource_manager, &resource_state) == MM_ERROR_NONE) { if (resource_state >= RESOURCE_STATE_ACQUIRED) { ret = _mmplayer_resource_manager_release(&player->resource_manager); if (ret != MM_ERROR_NONE) -- 2.7.4