From 084b293f89f0ea5c592bb63e4b35ecec0fbe77a0 Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Thu, 15 Jun 2006 21:40:05 +0000 Subject: Fix non-static assignment of static variable. CVS patchset: 8041 CVS date: 2006/06/15 21:40:05 --- src/video_out/video_out_opengl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/video_out/video_out_opengl.c b/src/video_out/video_out_opengl.c index 301c3587c..082febd75 100644 --- a/src/video_out/video_out_opengl.c +++ b/src/video_out/video_out_opengl.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_opengl.c,v 1.56 2006/06/02 22:18:58 dsalt Exp $ + * $Id: video_out_opengl.c,v 1.57 2006/06/15 21:40:05 komadori Exp $ * * video_out_opengl.c, OpenGL based interface for xine * @@ -709,7 +709,10 @@ static void *getdladdr (const GLubyte *_funcName) { return res; #elif defined (__sun) || defined (__sgi) - static void *handle = dlopen (NULL, RTLD_LAZY); + static void *handle = NULL; + if (!handle) { + handle = dlopen (NULL, RTLD_LAZY); + } return dlsym (handle, funcName); #else /* all other Un*xes */ -- cgit v1.2.3