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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7097>
This commit is contained in:
Lim, Siew Hoon 2024-06-27 14:05:46 +08:00 committed by GStreamer Marge Bot
parent f498ba25da
commit e82eb628b1

View file

@ -654,7 +654,7 @@ gst_va_compositor_decide_allocation (GstAggregator * agg, GstQuery * query)
GstVideoAggregator *vagg = GST_VIDEO_AGGREGATOR (agg); GstVideoAggregator *vagg = GST_VIDEO_AGGREGATOR (agg);
GstAllocator *allocator = NULL, *other_allocator = NULL; GstAllocator *allocator = NULL, *other_allocator = NULL;
GstAllocationParams params, other_params; GstAllocationParams params = { 0, }, other_params = { 0, };
GstBufferPool *pool = NULL, *other_pool = NULL; GstBufferPool *pool = NULL, *other_pool = NULL;
GstCaps *caps = NULL; GstCaps *caps = NULL;
GstStructure *config; GstStructure *config;