eglglessink: Fix compiler warning on RPi
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 22 Feb 2013 09:58:19 +0000 (10:58 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 3 Mar 2013 11:31:05 +0000 (12:31 +0100)
ext/eglgles/gsteglglessink.c

index 048824f54729eb1d3ebeb8528d5af1646ed30404..e1de4b6bbee4a989f1ad8c1589ffd40ff70a63ab 100644 (file)
@@ -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;