This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit e3692c0895e92769274b56624fe54238f27fc5f7 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 13 06:10:51 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 20:41:50 2026 +0000 avfilter/dnn_backend_tf: wait only for the inference requests that were created Fixes: nC3u8khGyx61 Fixes: hang on teardown Hang on teardown Replicated through UnModified FFmpeg with gdb Found during triage of the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24617 --- libavfilter/dnn/dnn_backend_tf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c index 110ae2c509..c292a14efe 100644 --- a/libavfilter/dnn/dnn_backend_tf.c +++ b/libavfilter/dnn/dnn_backend_tf.c @@ -44,6 +44,7 @@ typedef struct TFModel { SafeQueue *request_queue; Queue *lltask_queue; Queue *task_queue; + int nb_requests; } TFModel; /** @@ -486,7 +487,7 @@ static void dnn_free_model_tf(DNNModel **model) return; tf_model = (TFModel *)(*model); - ff_dnn_wait_requests(tf_model->request_queue, tf_model->ctx->nireq); + ff_dnn_wait_requests(tf_model->request_queue, tf_model->nb_requests); while (ff_safe_queue_size(tf_model->request_queue) != 0) { TFRequestItem *item = ff_safe_queue_pop_front(tf_model->request_queue); destroy_request_item(&item); @@ -567,6 +568,7 @@ static DNNModel *dnn_load_model_tf(DnnContext *ctx, DNNFunctionType func_type, A destroy_request_item(&item); goto err; } + tf_model->nb_requests++; } tf_model->lltask_queue = ff_queue_create(); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
