mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
vabasedec: 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:
parent
c270c5643d
commit
f498ba25da
1 changed files with 2 additions and 2 deletions
|
@ -266,7 +266,7 @@ _decide_allocation_for_video_crop (GstVideoDecoder * decoder,
|
|||
GstQuery * query, GstCaps * caps)
|
||||
{
|
||||
GstAllocator *allocator = NULL, *other_allocator = NULL;
|
||||
GstAllocationParams other_params, params;
|
||||
GstAllocationParams other_params = { 0, }, params = { 0, };
|
||||
gboolean update_pool = FALSE, update_allocator = FALSE;
|
||||
GstBufferPool *pool = NULL, *other_pool = NULL;
|
||||
guint size = 0, min, max, usage_hint;
|
||||
|
@ -475,7 +475,7 @@ static gboolean
|
|||
gst_va_base_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
|
||||
{
|
||||
GstAllocator *allocator = NULL, *other_allocator = NULL;
|
||||
GstAllocationParams other_params, params;
|
||||
GstAllocationParams other_params = { 0, }, params = { 0, };
|
||||
GstBufferPool *pool = NULL, *other_pool = NULL;
|
||||
GstCaps *caps = NULL;
|
||||
GstVaBaseDec *base = GST_VA_BASE_DEC (decoder);
|
||||
|
|
Loading…
Reference in a new issue