Add media packet cleanup to unprepare for EVAS display type 32/182532/3 accepted/tizen/unified/20180704.074856 submit/tizen/20180703.041635
authorHyunil <hyunil46.park@samsung.com>
Tue, 26 Jun 2018 03:58:22 +0000 (12:58 +0900)
committerHyunil Park <hyunil46.park@samsung.com>
Wed, 27 Jun 2018 01:06:01 +0000 (01:06 +0000)
Change-Id: I23a2df2e56d21a91b50fb8c023292c5a99d939c0
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
src/player.c

index b984e7e28158d5f4afecbf98d82df60f6f238c55..9bcafef09ffc023766732ec3d3d262c623a550e0 100644 (file)
@@ -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);