Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
b64885ef
Commit
b64885ef
authored
Mar 03, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pulse: uses Xlib, needs XInitThreads()
parent
e05d34f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
configure.ac
configure.ac
+1
-0
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+7
-0
No files found.
configure.ac
View file @
b64885ef
...
...
@@ -3784,6 +3784,7 @@ dnl
dnl Pulseaudio module
dnl
PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.11], [Pulseaudio support], [auto])
VLC_ADD_LIBS([pulse], [${X_LIBS} ${X_PRE_LIBS} -lX11])
dnl
dnl Portaudio module
...
...
modules/audio_output/pulse.c
View file @
b64885ef
...
...
@@ -34,6 +34,9 @@
#include <vlc_cpu.h>
#include <pulse/pulseaudio.h>
#ifdef HAVE_X11_XLIB_H
# include <X11/Xlib.h>
#endif
#include <assert.h>
...
...
@@ -119,6 +122,10 @@ static int Open ( vlc_object_t *p_this )
struct
pa_buffer_attr
a
;
struct
pa_channel_map
map
;
#ifdef HAVE_X11_XLIB_H
if
(
!
XInitThreads
()
)
return
VLC_EGENERIC
;
#endif
/* Allocate structures */
p_aout
->
output
.
p_sys
=
p_sys
=
calloc
(
1
,
sizeof
(
aout_sys_t
)
);
if
(
p_sys
==
NULL
)
...
...
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