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
2ae976d9
Commit
2ae976d9
authored
Nov 09, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EGL: initialize Xlib
P.S.: I haaaaaaaaaaaaaaate Xlib!!!!
parent
a1b3978d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
modules/video_output/Modules.am
modules/video_output/Modules.am
+1
-1
modules/video_output/egl.c
modules/video_output/egl.c
+7
-0
No files found.
modules/video_output/Modules.am
View file @
2ae976d9
...
...
@@ -92,7 +92,7 @@ libegl_plugin_la_CFLAGS = $(AM_CFLAGS) \
libegl_plugin_la_LIBADD = $(AM_LIBADD) \
$(EGL_LIBS) $(GL_LIBS)
if !HAVE_WIN32
libegl_plugin_la_LIBADD += -ldl
libegl_plugin_la_LIBADD += -ldl
$(X_LIBS) $(X_PRE_LIBS) -lX11
endif
libegl_plugin_la_DEPENDENCIES =
EXTRA_LTLIBRARIES += libegl_plugin.la
...
...
modules/video_output/egl.c
View file @
2ae976d9
...
...
@@ -33,6 +33,9 @@
#include <vlc_vout_display.h>
#include <vlc_vout_opengl.h>
#include "opengl.h"
#ifdef __unix__
# include <vlc_xlib.h>
#endif
#if USE_OPENGL_ES
# define VLC_API_NAME "OpenGL_ES"
...
...
@@ -139,6 +142,10 @@ static vout_window_t *MakeWindow (vout_display_t *vd, EGLNativeWindowType *id)
*/
static
int
Open
(
vlc_object_t
*
obj
)
{
#ifdef __unix__
if
(
!
vlc_xlib_init
(
obj
))
return
VLC_EGENERIC
;
#endif
vout_display_t
*
vd
=
(
vout_display_t
*
)
obj
;
/* Initialize EGL display */
...
...
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