static void gst_gl_window_gbm_egl_draw (GstGLWindow * window);
static gboolean gst_gl_window_gbm_init_surface (GstGLWindowGBMEGL * window_egl);
-static void gst_gl_window_gbm_egl_cleanup (GstGLWindowGBMEGL * window_egl);
-
static void
{
GstGLWindowGBMEGL *window_egl = GST_GL_WINDOW_GBM_EGL (window);
- gst_gl_window_gbm_egl_cleanup (window_egl);
+ if (window_egl->gbm_surf != NULL) {
+ if (window_egl->current_bo != NULL) {
+ gbm_surface_release_buffer (window_egl->gbm_surf, window_egl->current_bo);
+ window_egl->current_bo = NULL;
+ }
+
+ gbm_surface_destroy (window_egl->gbm_surf);
+ window_egl->gbm_surf = NULL;
+ }
GST_GL_WINDOW_CLASS (gst_gl_window_gbm_egl_parent_class)->close (window);
}
}
-static void
-gst_gl_window_gbm_egl_cleanup (GstGLWindowGBMEGL * window_egl)
-{
- if (window_egl->gbm_surf != NULL) {
- if (window_egl->current_bo != NULL) {
- gbm_surface_release_buffer (window_egl->gbm_surf, window_egl->current_bo);
- window_egl->current_bo = NULL;
- }
-
- gbm_surface_destroy (window_egl->gbm_surf);
- window_egl->gbm_surf = NULL;
- }
-}
-
-
/* Must be called in the gl thread */
GstGLWindowGBMEGL *
gst_gl_window_gbm_egl_new (GstGLDisplay * display)