summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-16 20:51:02 (GMT)
committerThiago Santos <thiago.sousa.santos@collabora.com>2013-05-14 16:17:04 (GMT)
commit34b7c031be1d64834bcc01da9ed8c768102082f1 (patch)
tree34ef4c7233b4440908a087407716819567ce1d2e
parentca316fc715b8c71491d836d01eaab5cd0413ce75 (diff)
downloadgst-plugins-bad-34b7c031be1d64834bcc01da9ed8c768102082f1.tar.gz
gst-plugins-bad-34b7c031be1d64834bcc01da9ed8c768102082f1.tar.xz
eglglessink: Reorder surface queries
Otherwise wrong values can be returned.
-rw-r--r--ext/eglgles/gstegladaptation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/eglgles/gstegladaptation.c b/ext/eglgles/gstegladaptation.c
index 8225ffe..0439dcb 100644
--- a/ext/eglgles/gstegladaptation.c
+++ b/ext/eglgles/gstegladaptation.c
@@ -471,16 +471,16 @@ gst_egl_adaptation_init_egl_surface (GstEglAdaptationContext * ctx,
goto HANDLE_ERROR_LOCKED;
}
- gst_egl_adaptation_query_buffer_preserved (ctx);
-
if (!gst_egl_adaptation_make_current (ctx, TRUE))
goto HANDLE_ERROR_LOCKED;
- gst_egl_adaptation_query_par (ctx);
+ gst_egl_adaptation_query_buffer_preserved (ctx);
/* Save surface dims */
gst_egl_adaptation_update_surface_dimensions (ctx);
+ gst_egl_adaptation_query_par (ctx);
+
/* We have a surface! */
ctx->have_surface = TRUE;