Commit db913178 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Thomas Guillem
Browse files

hw: vaapi: fix caps type of vaQueryVideoProcFilterCaps



Fixes #22053
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent dd4d8828
......@@ -983,13 +983,13 @@ Deinterlace_Flush(filter_t *filter)
static inline bool
OpenDeinterlace_IsValidType(filter_t * filter,
VAProcDeinterlacingType const caps[],
VAProcFilterCapDeinterlacing const caps[],
unsigned int num_caps,
struct deint_mode const * deint_mode)
{
(void) filter;
for (unsigned int j = 0; j < num_caps; ++j)
if (caps[j] == deint_mode->type)
if (caps[j].type == deint_mode->type)
return true;
return false;
}
......@@ -997,7 +997,7 @@ OpenDeinterlace_IsValidType(filter_t * filter,
static inline int
OpenDeinterlace_GetMode(filter_t * filter, char const * deint_mode,
struct deint_mode * p_deint_mode,
VAProcDeinterlacingType const caps[],
VAProcFilterCapDeinterlacing const caps[],
unsigned int num_caps)
{
bool fallback = false;
......@@ -1050,7 +1050,8 @@ OpenDeinterlace_InitFilterParams(filter_t * filter, void * p_data,
{
struct deint_data *const p_deint_data = p_data;
filter_sys_t *const filter_sys = filter->p_sys;
VAProcDeinterlacingType caps[VAProcDeinterlacingCount];
VAProcFilterCapDeinterlacing
caps[VAProcDeinterlacingCount];
unsigned int num_caps = VAProcDeinterlacingCount;
if (vlc_vaapi_QueryVideoProcFilterCaps(VLC_OBJECT(filter),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment