if (!DP_INTERFACE(pc)) {
LOGW("display port interface is NULL");
- goto RELEASE_INTERNAL_MOMORY;
+ goto RELEASE_INTERNAL_MEMORY;
}
if (mm_display_interface_get_type(DP_INTERFACE(pc), &display_type) != MM_ERROR_NONE) {
}
if (display_type != MM_DISPLAY_TYPE_EVAS)
- goto RELEASE_INTERNAL_MOMORY;
+ goto RELEASE_INTERNAL_MEMORY;
if (CALLBACK_INFO(pc)->dp_info.visible != PLAYER_VISIBLE_INFO_FALSE) {
if (mm_display_interface_evas_set_visible(DP_INTERFACE(pc), false) != MM_ERROR_NONE) {
}
}
+ /* this function waits to excute on the main thread (timeout 1 sec) */
if (mm_display_interface_evas_flush(DP_INTERFACE(pc), false) != MM_ERROR_NONE) {
LOGE("mm_display_interface_evas_flush failed");
return;
}
-RELEASE_INTERNAL_MOMORY:
+RELEASE_INTERNAL_MEMORY:
_player_release_internal_memory(pc, false);
pc->cb_info->video_frame_pool_size = 0;
__player_remove_tsurf_list(pc);
return false;
}
- if (event == MUSE_PLAYER_EVENT_TYPE_STATE_CHANGED ||
- event == MUSE_PLAYER_EVENT_TYPE_INTERRUPT) {
+ if (event == MUSE_PLAYER_EVENT_TYPE_INTERRUPT)
_player_internal_buffer_release((player_cli_s *)cb_info->pc);
- if (event == MUSE_PLAYER_EVENT_TYPE_STATE_CHANGED) {
- g_free(recv_data->buffer);
- g_free(recv_data);
- return true;
- }
- }
return _user_callback_handler(cb_info, event, recv_data);
}
g_free(ret_buf);
EXIT:
+ _player_internal_buffer_release(pc);
+
LOGD("LEAVE 0x%X", ret);
return ret;
}