[vlc-commits] glx: reorder code

Rémi Denis-Courmont git at videolan.org
Wed Jul 17 22:25:45 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 17 23:21:20 2019 +0300| [49ca4194b7b14390c9b039fdbe6b42663981d8ae] | committer: Rémi Denis-Courmont

glx: reorder code

Non-functional change.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=49ca4194b7b14390c9b039fdbe6b42663981d8ae
---

 modules/video_output/glx.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/modules/video_output/glx.c b/modules/video_output/glx.c
index ab14cc0b93..d5d47c017a 100644
--- a/modules/video_output/glx.c
+++ b/modules/video_output/glx.c
@@ -113,6 +113,17 @@ static bool CheckGLXext (Display *dpy, unsigned snum, const char *ext)
     return false;
 }
 
+static void Close(vlc_gl_t *gl)
+{
+    vlc_gl_sys_t *sys = gl->sys;
+    Display *dpy = sys->display;
+
+    glXDestroyContext(dpy, sys->ctx);
+    glXDestroyWindow(dpy, sys->win);
+    XCloseDisplay(dpy);
+    free(sys);
+}
+
 static int Open(vlc_gl_t *gl, unsigned width, unsigned height)
 {
     vlc_object_t *obj = VLC_OBJECT(gl);
@@ -254,17 +265,6 @@ error:
     return VLC_EGENERIC;
 }
 
-static void Close(vlc_gl_t *gl)
-{
-    vlc_gl_sys_t *sys = gl->sys;
-    Display *dpy = sys->display;
-
-    glXDestroyContext (dpy, sys->ctx);
-    glXDestroyWindow (dpy, sys->win);
-    XCloseDisplay (dpy);
-    free (sys);
-}
-
 vlc_module_begin ()
     set_shortname (N_("GLX"))
     set_description (N_("GLX extension for OpenGL"))



More information about the vlc-commits mailing list