From 6347e67c61fb9e51f69fed3df4106de898ade35f Mon Sep 17 00:00:00 2001 From: Venugopal S M Date: Mon, 27 Feb 2023 18:55:02 +0530 Subject: [PATCH] fixup! [M108 Migration] Enable video hole feature Call decode unset method in IDLE state. Reference: https://review.tizen.org/gerrit/283277 Change-Id: Ice0d1ad64e65aca47275df01ad550c73748a22c6 Signed-off-by: wuxiaoliang Signed-off-by: Venugopal S M --- .../chromium_impl/media/base/tizen/media_player_bridge_capi.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tizen_src/chromium_impl/media/base/tizen/media_player_bridge_capi.cc b/tizen_src/chromium_impl/media/base/tizen/media_player_bridge_capi.cc index 4e37d58..14136ef 100644 --- a/tizen_src/chromium_impl/media/base/tizen/media_player_bridge_capi.cc +++ b/tizen_src/chromium_impl/media/base/tizen/media_player_bridge_capi.cc @@ -272,13 +272,17 @@ void MediaPlayerBridgeCapi::Release() { player_unset_interrupted_cb(player_); player_unset_error_cb(player_); player_unset_buffering_cb(player_); - player_unset_media_packet_video_frame_decoded_cb(player_); if (GetPlayerState() > PLAYER_STATE_READY && player_stop(player_) != PLAYER_ERROR_NONE) { LOG(ERROR) << "|player_stop| failed"; } +#if defined(TIZEN_VIDEO_HOLE) + if (!is_video_hole_) +#endif + player_unset_media_packet_video_frame_decoded_cb(player_); + if (GetPlayerState() > PLAYER_STATE_IDLE && player_unprepare(player_) != PLAYER_ERROR_NONE) LOG(ERROR) << "|player_unprepare| failed"; -- 2.7.4