vaapi linux Opengl: first frame seems to appear in the incorrect orientation
Very visible when running inside valgrind since only the first frame is displayed.
After pausing and waiting, we get:
[000000001b0cb560] main video output debug: Opening vout display wrapper
[0000000006a0f070] main vout display debug: looking for vout display module matching "any": 7 candidates
[00000000196ad238] main generic debug: looking for opengl module matching "any": 4 candidates
[0000000006a08bc0] egl_wl gl debug: EGL version 1.5 by Mesa Project
[0000000006a08bc0] egl_wl gl debug: extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_present_opaque EGL_EXT_swap_buffers_with_damage EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display EGL_WL_create_wayland_buffer_from_image
[00000000196ad238] main generic debug: using opengl module "egl_wl"
[00000000196ad138] main generic debug: looking for glinterop module matching "any": 5 candidates
[00000000196ad138] main generic debug: using glinterop module "glinterop_vaapi"
[00000000196ad108] main generic debug: looking for opengl filter module matching "renderer": 2 candidates
[0000000006a08bc0] gles2 gl: Initialized libplacebo 4.0.0-dev-18346-ga177d079c1 (API v157)
[00000000196ad108] main generic debug: using opengl filter module "gles2"
[0000000006a0f070] main vout display debug: using vout display module "gl"
[000000001b0cb560] main video output debug: original format sz 1280x720, of (0,0), vsz 1280x720, 4cc VAOP, sar 1:1, orient: normal, msk r0x0 g0x0 b0x0
[000000001b0cf430] main spu text debug: removing module "freetype"
[00000000196ad3c8] main generic debug: looking for text renderer module matching "any": 3 candidates
[00000000053d2e00] freetype spu text debug: Building font databases.
[00000000053d2e00] freetype spu text debug: Took 336930 microseconds
[00000000196ad3c8] main generic debug: using text renderer module "freetype"
[000000001b0cb560] main video output debug: requested window size: 1280x720
[0000000005c85000] main window debug: resized to 1280x720
[h264 @ 0x53e04c0] Reinit context to 1280x720, pix_fmt: vaapi
[0000000005c85000] xdg_shell window debug: new configuration: 0x0
[0000000005c85000] main window debug: window set windowed
[0000000005c85000] main window debug: resized to 1280x720
[000000000533dbd0] main decoder debug: Received first picture