From 9f25db09817ef9ab049f4ffb102806f6a57571f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 24 Apr 2013 09:40:24 +0200 Subject: [PATCH] eglglessink: Use gst_egl_display_get() instead of passing a GstEGLDisplay to EGL functions --- ext/eglgles/gstegladaptation_egl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/eglgles/gstegladaptation_egl.c b/ext/eglgles/gstegladaptation_egl.c index f804e77a7b..f54fb11d3b 100644 --- a/ext/eglgles/gstegladaptation_egl.c +++ b/ext/eglgles/gstegladaptation_egl.c @@ -363,7 +363,7 @@ gst_egl_adaptation_query_par (GstEglAdaptationContext * ctx) EGL_DISPLAY_SCALING, EGL_DISPLAY_SCALING); ctx->pixel_aspect_ratio_n = EGL_DISPLAY_SCALING; } else { - eglQuerySurface (ctx->display, + eglQuerySurface (gst_egl_display_get (ctx->display), ctx->eglglesctx->surface, EGL_PIXEL_ASPECT_RATIO, &display_par); /* Fix for outbound DAR reporting on some implementations not * honoring the 'should return w/h * EGL_DISPLAY_SCALING' spec @@ -632,7 +632,7 @@ gst_egl_adaptation_allocate_eglimage (GstEglAdaptationContext * ctx, goto mem_error; image = - eglCreateImageKHR (ctx->display, + eglCreateImageKHR (gst_egl_display_get (ctx->display), ctx->eglglesctx->eglcontext, EGL_GL_TEXTURE_2D_KHR, (EGLClientBuffer) (guintptr) data->texture, NULL); if (got_egl_error ("eglCreateImageKHR")) @@ -735,7 +735,7 @@ gst_egl_adaptation_allocate_eglimage (GstEglAdaptationContext * ctx, goto mem_error; image = - eglCreateImageKHR (ctx->display, + eglCreateImageKHR (gst_egl_display_get (ctx->display), ctx->eglglesctx->eglcontext, EGL_GL_TEXTURE_2D_KHR, (EGLClientBuffer) (guintptr) data->texture, NULL); if (got_egl_error ("eglCreateImageKHR")) -- 2.34.1