From 57a4d521fd3ac02b0751b65a97b8ffcd6a977ec4 Mon Sep 17 00:00:00 2001 From: Michael Tretter Date: Thu, 14 Dec 2023 12:31:01 +0100 Subject: [PATCH] videorate: keep pool if max_buffers is unlimited The value 0 for max_buffers means unlimited. If the max_buffers are unlimited, the videorate element shouldn't throw away the bufferpool, but just increase the min_buffers value. Part-of: --- subprojects/gst-plugins-base/gst/videorate/gstvideorate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/videorate/gstvideorate.c b/subprojects/gst-plugins-base/gst/videorate/gstvideorate.c index f1c8532a40..4ae4f69e0d 100644 --- a/subprojects/gst-plugins-base/gst/videorate/gstvideorate.c +++ b/subprojects/gst-plugins-base/gst/videorate/gstvideorate.c @@ -1407,7 +1407,7 @@ gst_video_rate_propose_allocation (GstBaseTransform * trans, gst_query_parse_nth_allocation_pool (query, i, &pool, &size, &min, &max); - if (min == max) { + if (max != 0 && min == max) { if (pool) gst_object_unref (pool); gst_query_remove_nth_allocation_pool (query, i);