From: Hyunil Date: Tue, 26 Jun 2018 03:58:22 +0000 (+0900) Subject: Add media packet cleanup to unprepare for EVAS display type X-Git-Tag: submit/tizen/20180703.041635^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90eb49117c9738e3d7db2610cbf8a39bb0ea46b8;p=platform%2Fcore%2Fapi%2Fplayer.git Add media packet cleanup to unprepare for EVAS display type Change-Id: I23a2df2e56d21a91b50fb8c023292c5a99d939c0 Signed-off-by: Hyunil --- 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);