gl/context_egl: pass the vars in the right order to DestroySurface
authorMatthew Waters <ystreet00@gmail.com>
Tue, 27 May 2014 00:47:25 +0000 (10:47 +1000)
committerMatthew Waters <ystreet00@gmail.com>
Tue, 27 May 2014 00:49:26 +0000 (10:49 +1000)
https://bugzilla.gnome.org/show_bug.cgi?id=728514

gst-libs/gst/gl/egl/gstglcontext_egl.c

index d3c8d96dbe5a56ffc034ce0c24b872b0c060969b..2cd1b31b757cfab84ee5f5fd05212503e8e75783 100644 (file)
@@ -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);