Hey there, While enabling LibVA on ChromeOS with their Ozone backend (EGL/GLES2 without X), I stumbled upon a crash. Here is a simple patch to fix it. It's pretty much a copy/paste of a snippet already in EGL/wayland. Cheers, - Lionel