From e82eb628b1db88806d1111db57f591683649be03 Mon Sep 17 00:00:00 2001 From: "Lim, Siew Hoon" Date: Thu, 27 Jun 2024 14:05:46 +0800 Subject: [PATCH] vacompositor: Initialize the allocation related variables in decide_allocation() Prevent garbage value has been pass thru and causing pipeline fail to run later on. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvacompositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c b/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c index 4b5a5fac4a..5397268ab0 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c @@ -654,7 +654,7 @@ gst_va_compositor_decide_allocation (GstAggregator * agg, GstQuery * query) GstVideoAggregator *vagg = GST_VIDEO_AGGREGATOR (agg); GstAllocator *allocator = NULL, *other_allocator = NULL; - GstAllocationParams params, other_params; + GstAllocationParams params = { 0, }, other_params = { 0, }; GstBufferPool *pool = NULL, *other_pool = NULL; GstCaps *caps = NULL; GstStructure *config;