vabasetranform: Initialize the allocation related variables in decide_allocation()

Prevent garbage value has been pass thru and causing
pipeline fail to run.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7097>
This commit is contained in:
Lim, Siew Hoon 2024-06-25 14:38:12 +08:00 committed by GStreamer Marge Bot
parent e9801cb0a5
commit c270c5643d

View file

@ -326,7 +326,7 @@ gst_va_base_transform_decide_allocation (GstBaseTransform * trans,
{
GstVaBaseTransform *self = GST_VA_BASE_TRANSFORM (trans);
GstAllocator *allocator = NULL, *other_allocator = NULL;
GstAllocationParams params, other_params;
GstAllocationParams params = { 0, }, other_params = { 0, };
GstBufferPool *pool = NULL, *other_pool = NULL;
GstCaps *outcaps = NULL;
GstStructure *config;