mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
eglglessink: Reorder surface queries
Otherwise wrong values can be returned.
This commit is contained in:
parent
118f8f33ef
commit
92e9988a40
1 changed files with 5 additions and 5 deletions
|
@ -471,13 +471,16 @@ gst_egl_adaptation_init_egl_surface (GstEglAdaptationContext * ctx,
|
||||||
goto HANDLE_ERROR_LOCKED;
|
goto HANDLE_ERROR_LOCKED;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_egl_adaptation_query_buffer_preserved (ctx);
|
|
||||||
|
|
||||||
if (!gst_egl_adaptation_context_make_current (ctx, TRUE))
|
if (!gst_egl_adaptation_context_make_current (ctx, TRUE))
|
||||||
goto HANDLE_ERROR_LOCKED;
|
goto HANDLE_ERROR_LOCKED;
|
||||||
|
|
||||||
|
gst_egl_adaptation_query_buffer_preserved (ctx);
|
||||||
|
|
||||||
gst_egl_adaptation_init_egl_exts (ctx);
|
gst_egl_adaptation_init_egl_exts (ctx);
|
||||||
|
|
||||||
|
/* Save surface dims */
|
||||||
|
gst_egl_adaptation_update_surface_dimensions (ctx);
|
||||||
|
|
||||||
/* Save display's pixel aspect ratio
|
/* Save display's pixel aspect ratio
|
||||||
*
|
*
|
||||||
* DAR is reported as w/h * EGL_DISPLAY_SCALING wich is
|
* DAR is reported as w/h * EGL_DISPLAY_SCALING wich is
|
||||||
|
@ -489,9 +492,6 @@ gst_egl_adaptation_init_egl_surface (GstEglAdaptationContext * ctx,
|
||||||
*/
|
*/
|
||||||
gst_egl_adaptation_query_par (ctx);
|
gst_egl_adaptation_query_par (ctx);
|
||||||
|
|
||||||
/* Save surface dims */
|
|
||||||
gst_egl_adaptation_update_surface_dimensions (ctx);
|
|
||||||
|
|
||||||
/* We have a surface! */
|
/* We have a surface! */
|
||||||
ctx->have_surface = TRUE;
|
ctx->have_surface = TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue