diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c index d3c8d96dbe..2cd1b31b75 100644 --- a/gst-libs/gst/gl/egl/gstglcontext_egl.c +++ b/gst-libs/gst/gl/egl/gstglcontext_egl.c @@ -447,7 +447,7 @@ gst_gl_context_egl_destroy_context (GstGLContext * context) gst_gl_context_egl_activate (context, FALSE); if (egl->egl_surface) - eglDestroySurface (egl->egl_surface, egl->egl_display); + eglDestroySurface (egl->egl_display, egl->egl_surface); if (egl->egl_context) eglDestroyContext (egl->egl_display, egl->egl_context);