From cf9150154a8cd9c417190d6554170de224564685 Mon Sep 17 00:00:00 2001 From: Shreyash Sinha Date: Sat, 16 Nov 2024 02:48:15 +0530 Subject: [PATCH] apps/app.c : removed tiovx_modules_dequeue_buf during cleanup this func was dequeuing buffers from output block during cleanup which is not needed ADASVISION-6202 Signed-off-by: Shreyash Sinha --- apps/src/app.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/src/app.c b/apps/src/app.c index 984cf4c..4d942c3 100644 --- a/apps/src/app.c +++ b/apps/src/app.c @@ -1139,8 +1139,6 @@ int32_t run_app(FlowInfo flow_infos[], uint32_t num_flows, CmdArgs *cmd_args) tiovx_modules_release_buf(inbuf); } #endif - outbuf = tiovx_modules_dequeue_buf(out_buf_pool); - tiovx_modules_release_buf(outbuf); } #if defined(TARGET_OS_LINUX) @@ -1152,6 +1150,10 @@ int32_t run_app(FlowInfo flow_infos[], uint32_t num_flows, CmdArgs *cmd_args) v4l2_encode_stop(output_blocks[i].v4l2_obj.v4l2_encode_handle); v4l2_encode_delete_handle(output_blocks[i].v4l2_obj.v4l2_encode_handle); } + if (LINUX_DISPLAY == output_blocks[i].output_info->sink) + { + kms_display_delete_handle(output_blocks[i].kms_obj.kms_display_handle); + } } #endif