From 90eb49117c9738e3d7db2610cbf8a39bb0ea46b8 Mon Sep 17 00:00:00 2001 From: Hyunil Date: Tue, 26 Jun 2018 12:58:22 +0900 Subject: [PATCH] Add media packet cleanup to unprepare for EVAS display type Change-Id: I23a2df2e56d21a91b50fb8c023292c5a99d939c0 Signed-off-by: Hyunil --- src/player.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/player.c b/src/player.c index b984e7e..9bcafef 100644 --- a/src/player.c +++ b/src/player.c @@ -2098,12 +2098,20 @@ int player_unprepare(player_h player) muse_player_api_e api = MUSE_PLAYER_API_UNPREPARE; player_cli_s *pc = (player_cli_s *) player; char *ret_buf = NULL; + int (*p_disp_evas_display_retrieve_all_packets)(void *, bool) = NULL; LOGD("ENTER"); if (!CALLBACK_INFO(pc)) return PLAYER_ERROR_INVALID_STATE; +#ifdef TIZEN_FEATURE_EVAS_RENDERER + PLAYER_DISP_DLSYM(pc->dl_handle, p_disp_evas_display_retrieve_all_packets, "disp_evas_display_retrieve_all_packets"); + ret = p_disp_evas_display_retrieve_all_packets(EVAS_HANDLE(pc), false); + if (ret != PLAYER_ERROR_NONE) + LOGI("mm_evas_renderer_retrieve_all_packets returned error"); +#endif + PLAYER_SEND_MSG(api, pc, ret_buf, ret); set_null_user_cb_lock(pc->cb_info, MUSE_PLAYER_EVENT_TYPE_SEEK); -- 2.34.1