From dd438bfa136120bdb1113ac73241ae43f1e5b022 Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Wed, 11 Nov 2020 14:01:38 +0900 Subject: [PATCH] [0.6.249] Post INTERRUPT_STARTED message before _mmplayer_unrealize Change-Id: I822ca506728b33c879eb78e62e2d5594743056bd --- packaging/libmm-player.spec | 2 +- src/mm_player_priv.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/libmm-player.spec b/packaging/libmm-player.spec index a6300a8..a8ea8e7 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.248 +Version: 0.6.249 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_player_priv.c b/src/mm_player_priv.c index d6b84e9..c25a6fc 100644 --- a/src/mm_player_priv.c +++ b/src/mm_player_priv.c @@ -4619,6 +4619,8 @@ __resource_release_cb(mm_resource_manager_h rm, mm_resource_manager_res_h res, player->interrupted_by_resource = TRUE; + MMPLAYER_POST_MSG(player, MM_MESSAGE_INTERRUPT_STARTED, NULL); + /* get last play position */ if (_mmplayer_gst_get_position(player, &pos) == MM_ERROR_NONE) { msg.union_type = MM_MSG_UNION_TIME; @@ -4628,8 +4630,6 @@ __resource_release_cb(mm_resource_manager_h rm, mm_resource_manager_res_h res, LOGW("failed to get play position."); } - MMPLAYER_POST_MSG(player, MM_MESSAGE_FLUSH_BUFFER, NULL); - LOGD("video resource conflict so, resource will be freed by unrealizing"); if (_mmplayer_unrealize((MMHandleType)player) != MM_ERROR_NONE) LOGE("failed to unrealize"); -- 2.7.4