diff --git a/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapicontext.c b/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapicontext.c index 88cd1105f3..0b97875b0a 100644 --- a/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapicontext.c +++ b/subprojects/gstreamer-vaapi/gst-libs/gst/vaapi/gstvaapicontext.c @@ -333,7 +333,7 @@ config_create (GstVaapiContext * context) string_of_va_chroma_format (va_chroma_format)); goto cleanup; } - attrib->value = va_chroma_format; + attrib->value = value; attrib = &attribs[++attrib_index]; g_assert (attrib_index < G_N_ELEMENTS (attribs));