From 5d6fbcb0af73b0d43bbead5d2c140c308b677fcc Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 6 Sep 2017 13:53:42 -0400 Subject: [PATCH] video-filter: Support allocation pool with pool object This is used to indicate upstream the requirement in buffers while no buffer pool can be provided. In this case, only configure the pool with caps/size/min/max if we have caps, which we only parsed when there was no allocation pool. https://bugzilla.gnome.org/show_bug.cgi?id=730758 --- gst-libs/gst/video/gstvideofilter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/video/gstvideofilter.c b/gst-libs/gst/video/gstvideofilter.c index 4087506..4d63eea 100644 --- a/gst-libs/gst/video/gstvideofilter.c +++ b/gst-libs/gst/video/gstvideofilter.c @@ -128,6 +128,9 @@ gst_video_filter_decide_allocation (GstBaseTransform * trans, GstQuery * query) if (gst_query_get_n_allocation_pools (query) > 0) { gst_query_parse_nth_allocation_pool (query, 0, &pool, &size, &min, &max); + if (!pool) + gst_query_parse_allocation (query, &outcaps, NULL); + update_pool = TRUE; } else { GstVideoInfo vinfo; -- 2.7.4