summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin KAY <komadori@users.sourceforge.net>2006-06-15 21:40:05 +0000
committerRobin KAY <komadori@users.sourceforge.net>2006-06-15 21:40:05 +0000
commit084b293f89f0ea5c592bb63e4b35ecec0fbe77a0 (patch)
tree3894eebe3133479f3a7871bd764592138efdf22b
parent04799cc9b9986e08c6989fe61a0a5460bdc9901a (diff)
downloadxine-lib-084b293f89f0ea5c592bb63e4b35ecec0fbe77a0.tar.gz
xine-lib-084b293f89f0ea5c592bb63e4b35ecec0fbe77a0.tar.bz2
Fix non-static assignment of static variable.
CVS patchset: 8041 CVS date: 2006/06/15 21:40:05
-rw-r--r--src/video_out/video_out_opengl.c7
1 files 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 */