mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
eglglessink: Fix compiler warning on RPi
This commit is contained in:
parent
e852f18e93
commit
196223b810
1 changed files with 2 additions and 2 deletions
|
@ -1539,8 +1539,8 @@ gst_eglglessink_init_egl_display (GstEglGlesSink * eglglessink)
|
|||
GST_DEBUG_OBJECT (eglglessink, "Enter EGL initial configuration");
|
||||
|
||||
#ifdef USE_EGL_RPI
|
||||
eglglessink->eglglesctx.display = gst_egl_display_new (display);
|
||||
if (!eglMakeCurrent (1, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)) {
|
||||
/* See https://github.com/raspberrypi/firmware/issues/99 */
|
||||
if (!eglMakeCurrent ((EGLDisplay) 1, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)) {
|
||||
got_egl_error ("eglMakeCurrent");
|
||||
GST_ERROR_OBJECT (eglglessink, "Couldn't unbind context");
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue