[vlc-devel] commit: In InitGLX13(), make sure fbconf has a defined value. Otherwise the for loop may be left too early. (Fabian Keil )

git version control git at videolan.org
Fri Jul 3 10:15:48 CEST 2009


vlc | branch: 1.0-bugfix | Fabian Keil <fk at fabiankeil.de> | Thu Jul  2 20:48:27 2009 +0200| [26c1bad818dc32fb1114c694fff1fe75c1e95bb5] | committer: Rémi Duraffort 

In InitGLX13(), make sure fbconf has a defined value. Otherwise the for loop may be left too early.

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
(cherry picked from commit 857fbdbcd2cd1222a686e0f35678ab0ba1606c08)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 modules/video_output/x11/glx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/x11/glx.c b/modules/video_output/x11/glx.c
index eb51ba6..14ac5ed 100644
--- a/modules/video_output/x11/glx.c
+++ b/modules/video_output/x11/glx.c
@@ -234,7 +234,7 @@ int InitGLX13( vout_thread_t *p_vout )
 {
     vout_sys_t *p_sys = p_vout->p_sys;
     int i_nb, ret = VLC_EGENERIC;
-    GLXFBConfig *p_fbconfs = NULL, fbconf;
+    GLXFBConfig *p_fbconfs = NULL, fbconf = NULL;
     XWindowAttributes att;
     static const int p_attr[] = {
         GLX_RED_SIZE, 5, GLX_GREEN_SIZE, 5, GLX_BLUE_SIZE, 5,




More information about the vlc-devel mailing list