Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
2c9223f8
Commit
2c9223f8
authored
Nov 08, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EGL: superb hack around Mesa EGL damaged linking
parent
d60221ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
modules/video_output/Modules.am
modules/video_output/Modules.am
+3
-0
modules/video_output/egl.c
modules/video_output/egl.c
+15
-0
No files found.
modules/video_output/Modules.am
View file @
2c9223f8
...
@@ -91,6 +91,9 @@ libegl_plugin_la_CFLAGS = $(AM_CFLAGS) \
...
@@ -91,6 +91,9 @@ libegl_plugin_la_CFLAGS = $(AM_CFLAGS) \
$(EGL_CFLAGS) $(GL_CFLAGS)
$(EGL_CFLAGS) $(GL_CFLAGS)
libegl_plugin_la_LIBADD = $(AM_LIBADD) \
libegl_plugin_la_LIBADD = $(AM_LIBADD) \
$(EGL_LIBS) $(GL_LIBS)
$(EGL_LIBS) $(GL_LIBS)
if !HAVE_WIN32
libegl_plugin_la_LIBADD += -ldl
endif
libegl_plugin_la_DEPENDENCIES =
libegl_plugin_la_DEPENDENCIES =
EXTRA_LTLIBRARIES += libegl_plugin.la
EXTRA_LTLIBRARIES += libegl_plugin.la
libvlc_LTLIBRARIES += $(LTLIBegl)
libvlc_LTLIBRARIES += $(LTLIBegl)
...
...
modules/video_output/egl.c
View file @
2c9223f8
...
@@ -48,6 +48,10 @@
...
@@ -48,6 +48,10 @@
# define VLC_RENDERABLE_BIT EGL_OPENGL_BIT
# define VLC_RENDERABLE_BIT EGL_OPENGL_BIT
#endif
#endif
#ifdef __unix__
# include <dlfcn.h>
#endif
/* Plugin callbacks */
/* Plugin callbacks */
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
@@ -151,6 +155,17 @@ static int Open (vlc_object_t *obj)
...
@@ -151,6 +155,17 @@ static int Open (vlc_object_t *obj)
sys
->
gl
.
sys
=
NULL
;
sys
->
gl
.
sys
=
NULL
;
sys
->
pool
=
NULL
;
sys
->
pool
=
NULL
;
/* XXX Explicit hack!
* Mesa EGL plugins (as of version 7.8.2) are not properly linked to
* libEGL.so even though they import some of its symbols. This is
* typically not a problem. Unfortunately, LibVLC loads plugins as
* RTLD_LOCAL so that they do not pollute the namespace. Then the
* libEGL symbols are not visible to EGL plugins, and the run-time
* linker exits the whole process. */
#ifdef __unix__
dlopen
(
"libEGL.so"
,
RTLD_GLOBAL
|
RTLD_LAZY
);
#endif
EGLint
major
,
minor
;
EGLint
major
,
minor
;
if
(
eglInitialize
(
dpy
,
&
major
,
&
minor
)
!=
EGL_TRUE
)
if
(
eglInitialize
(
dpy
,
&
major
,
&
minor
)
!=
EGL_TRUE
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment