Commit c4735712 authored by Thomas Guillem's avatar Thomas Guillem

hw: vaapi: chroma: fix uninitialized var usage

parent def676f9
......@@ -309,6 +309,7 @@ static int Open(vlc_object_t *obj)
}
filter_sys->derive_failed = false;
filter_sys->image_fallback_failed = false;
filter_sys->image_fallback.image_id = VA_INVALID_ID;
if (is_upload)
{
......@@ -359,7 +360,7 @@ Close(vlc_object_t *obj)
{
filter_sys_t *const filter_sys = ((filter_t *)obj)->p_sys;
if (filter_sys->image_fallback.image_id)
if (filter_sys->image_fallback.image_id != VA_INVALID_ID)
vlc_vaapi_DestroyImage(obj, filter_sys->dpy,
filter_sys->image_fallback.image_id);
if (filter_sys->dest_pics)
......
Markdown is supported
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