mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
eglglessink: Use gst_egl_display_get() instead of passing a GstEGLDisplay to EGL functions
This commit is contained in:
parent
363aa90a10
commit
9f25db0981
1 changed files with 3 additions and 3 deletions
|
@ -363,7 +363,7 @@ gst_egl_adaptation_query_par (GstEglAdaptationContext * ctx)
|
||||||
EGL_DISPLAY_SCALING, EGL_DISPLAY_SCALING);
|
EGL_DISPLAY_SCALING, EGL_DISPLAY_SCALING);
|
||||||
ctx->pixel_aspect_ratio_n = EGL_DISPLAY_SCALING;
|
ctx->pixel_aspect_ratio_n = EGL_DISPLAY_SCALING;
|
||||||
} else {
|
} else {
|
||||||
eglQuerySurface (ctx->display,
|
eglQuerySurface (gst_egl_display_get (ctx->display),
|
||||||
ctx->eglglesctx->surface, EGL_PIXEL_ASPECT_RATIO, &display_par);
|
ctx->eglglesctx->surface, EGL_PIXEL_ASPECT_RATIO, &display_par);
|
||||||
/* Fix for outbound DAR reporting on some implementations not
|
/* Fix for outbound DAR reporting on some implementations not
|
||||||
* honoring the 'should return w/h * EGL_DISPLAY_SCALING' spec
|
* honoring the 'should return w/h * EGL_DISPLAY_SCALING' spec
|
||||||
|
@ -632,7 +632,7 @@ gst_egl_adaptation_allocate_eglimage (GstEglAdaptationContext * ctx,
|
||||||
goto mem_error;
|
goto mem_error;
|
||||||
|
|
||||||
image =
|
image =
|
||||||
eglCreateImageKHR (ctx->display,
|
eglCreateImageKHR (gst_egl_display_get (ctx->display),
|
||||||
ctx->eglglesctx->eglcontext, EGL_GL_TEXTURE_2D_KHR,
|
ctx->eglglesctx->eglcontext, EGL_GL_TEXTURE_2D_KHR,
|
||||||
(EGLClientBuffer) (guintptr) data->texture, NULL);
|
(EGLClientBuffer) (guintptr) data->texture, NULL);
|
||||||
if (got_egl_error ("eglCreateImageKHR"))
|
if (got_egl_error ("eglCreateImageKHR"))
|
||||||
|
@ -735,7 +735,7 @@ gst_egl_adaptation_allocate_eglimage (GstEglAdaptationContext * ctx,
|
||||||
goto mem_error;
|
goto mem_error;
|
||||||
|
|
||||||
image =
|
image =
|
||||||
eglCreateImageKHR (ctx->display,
|
eglCreateImageKHR (gst_egl_display_get (ctx->display),
|
||||||
ctx->eglglesctx->eglcontext, EGL_GL_TEXTURE_2D_KHR,
|
ctx->eglglesctx->eglcontext, EGL_GL_TEXTURE_2D_KHR,
|
||||||
(EGLClientBuffer) (guintptr) data->texture, NULL);
|
(EGLClientBuffer) (guintptr) data->texture, NULL);
|
||||||
if (got_egl_error ("eglCreateImageKHR"))
|
if (got_egl_error ("eglCreateImageKHR"))
|
||||||
|
|
Loading…
Reference in a new issue