mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-09 19:09:41 +00:00
eglglessink: Add error checking on eglSwapBuffers
This commit is contained in:
parent
f8dcc8aaa5
commit
68eac71910
1 changed files with 5 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue