diff mbox series

[FFmpeg-devel] lavfi/dnn_backend_openvino.c: Correct Pointer Type while Freeing

Message ID 20210527180554.7198-1-shubhanshu.e01@gmail.com
State Accepted
Commit e41255cddb827ee152a58a60ed3ecd4dc6e79847
Headers show
Series [FFmpeg-devel] lavfi/dnn_backend_openvino.c: Correct Pointer Type while Freeing
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Shubhanshu Saxena May 27, 2021, 6:05 p.m. UTC
This commit corrects the type of pointer of elements from the
inference queue in ff_dnn_free_model_ov.

Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
---
 libavfilter/dnn/dnn_backend_openvino.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Guo, Yejun May 28, 2021, 12:59 a.m. UTC | #1
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of
> Shubhanshu Saxena
> Sent: 2021年5月28日 2:06
> To: ffmpeg-devel@ffmpeg.org
> Cc: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
> Subject: [FFmpeg-devel] [PATCH] lavfi/dnn_backend_openvino.c: Correct
> Pointer Type while Freeing
> 
> This commit corrects the type of pointer of elements from the
> inference queue in ff_dnn_free_model_ov.
> 
> Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
> ---
>  libavfilter/dnn/dnn_backend_openvino.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavfilter/dnn/dnn_backend_openvino.c
> b/libavfilter/dnn/dnn_backend_openvino.c
> index e0781e854a..58c4ec9c9b 100644
> --- a/libavfilter/dnn/dnn_backend_openvino.c
> +++ b/libavfilter/dnn/dnn_backend_openvino.c
> @@ -963,7 +963,7 @@ void ff_dnn_free_model_ov(DNNModel **model)
>          ff_safe_queue_destroy(ov_model->request_queue);
> 
>          while (ff_queue_size(ov_model->inference_queue) != 0) {
> -            TaskItem *item =
> ff_queue_pop_front(ov_model->inference_queue);
> +            InferenceItem *item =
> ff_queue_pop_front(ov_model->inference_queue);
>              av_freep(&item);
>          }
>          ff_queue_destroy(ov_model->inference_queue);

thanks for the catch, will push soon.
diff mbox series

Patch

diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c
index e0781e854a..58c4ec9c9b 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b/libavfilter/dnn/dnn_backend_openvino.c
@@ -963,7 +963,7 @@  void ff_dnn_free_model_ov(DNNModel **model)
         ff_safe_queue_destroy(ov_model->request_queue);
 
         while (ff_queue_size(ov_model->inference_queue) != 0) {
-            TaskItem *item = ff_queue_pop_front(ov_model->inference_queue);
+            InferenceItem *item = ff_queue_pop_front(ov_model->inference_queue);
             av_freep(&item);
         }
         ff_queue_destroy(ov_model->inference_queue);