eglglessink: Add error checking on eglSwapBuffers

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2012-09-17 11:57:24 -03:00 committed by Sebastian Dröge
parent f8dcc8aaa5
commit 68eac71910

View file

@ -1522,7 +1522,11 @@ gst_eglglessink_render_and_display (GstEglGlesSink * eglglessink,
if (got_gl_error ("glDrawElements")) if (got_gl_error ("glDrawElements"))
goto HANDLE_ERROR; goto HANDLE_ERROR;
eglSwapBuffers (eglglessink->display, eglglessink->surface); if ((eglSwapBuffers (eglglessink->display, eglglessink->surface))
== EGL_FALSE) {
show_egl_error ("eglSwapBuffers");
goto HANDLE_ERROR;
}
} }
GST_DEBUG_OBJECT (eglglessink, "Succesfully rendered 1 frame"); GST_DEBUG_OBJECT (eglglessink, "Succesfully rendered 1 frame");