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
f554fa3a
Commit
f554fa3a
authored
Jul 12, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SDL vout: fix crash due to (not calling) XInitThreads
(cherry picked from commit
7b337cff
)
parent
6f05b7ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
configure.ac
configure.ac
+3
-0
modules/video_output/sdl.c
modules/video_output/sdl.c
+15
-3
No files found.
configure.ac
View file @
f554fa3a
...
...
@@ -3423,6 +3423,9 @@ then
if test "${SYS}" != "darwin"; then
VLC_ADD_PLUGIN([vout_sdl aout_sdl])
fi
if test "${SYS}" != "mingw32"; then
VLC_ADD_LIBS([vout_sdl],[${X_LIBS} ${X_PRE_LIBS} -lX11])
fi
VLC_ADD_CFLAGS([vout_sdl aout_sdl],[${SDL_CFLAGS}])
VLC_ADD_LIBS([vout_sdl aout_sdl],[${SDL_LIBS}])
...
...
modules/video_output/sdl.c
View file @
f554fa3a
...
...
@@ -41,6 +41,13 @@
#include <SDL.h>
#ifndef WIN32
# ifdef X_DISPLAY_MISSING
# error Xlib required due to XInitThreads
# endif
# include <vlc_xlib.h>
#endif
/*****************************************************************************
* Module descriptor
*****************************************************************************/
...
...
@@ -73,7 +80,7 @@ vlc_module_end()
* Local prototypes
*****************************************************************************/
static
picture_pool_t
*
Pool
(
vout_display_t
*
,
unsigned
);
static
void
Display
(
vout_display_t
*
,
picture_t
*
);
static
void
Picture
Display
(
vout_display_t
*
,
picture_t
*
);
static
int
Control
(
vout_display_t
*
,
int
,
va_list
);
static
void
Manage
(
vout_display_t
*
);
...
...
@@ -111,6 +118,11 @@ static int Open(vlc_object_t *object)
vout_display_t
*
vd
=
(
vout_display_t
*
)
object
;
vout_display_sys_t
*
sys
;
#ifndef WIN32
if
(
!
vlc_xlib_init
(
object
))
return
VLC_EGENERIC
;
#endif
/* XXX: check for conflicts with the SDL audio output */
vlc_mutex_lock
(
&
sdl_lock
);
...
...
@@ -327,7 +339,7 @@ static int Open(vlc_object_t *object)
vd
->
pool
=
Pool
;
vd
->
prepare
=
NULL
;
vd
->
display
=
Display
;
vd
->
display
=
Picture
Display
;
vd
->
control
=
Control
;
vd
->
manage
=
Manage
;
...
...
@@ -431,7 +443,7 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count)
/**
* Display a picture
*/
static
void
Display
(
vout_display_t
*
vd
,
picture_t
*
p_pic
)
static
void
Picture
Display
(
vout_display_t
*
vd
,
picture_t
*
p_pic
)
{
vout_display_sys_t
*
sys
=
vd
->
sys
;
...
...
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