Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
233e8157
Commit
233e8157
authored
May 05, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pulse: fix race where the device list was empty at start
parent
57b5d92b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+8
-1
No files found.
modules/audio_output/pulse.c
View file @
233e8157
...
...
@@ -114,7 +114,10 @@ static void sink_add_cb(pa_context *ctx, const pa_sink_info *i, int eol,
aout_sys_t
*
sys
=
aout
->
sys
;
if
(
eol
)
{
pa_threaded_mainloop_signal
(
sys
->
mainloop
,
0
);
return
;
}
(
void
)
ctx
;
msg_Dbg
(
aout
,
"adding sink %"
PRIu32
": %s (%s)"
,
i
->
index
,
i
->
name
,
...
...
@@ -1064,8 +1067,12 @@ static int Open(vlc_object_t *obj)
pa_threaded_mainloop_lock
(
sys
->
mainloop
);
/* Sinks (output devices) list */
op
=
pa_context_get_sink_info_list
(
sys
->
context
,
sink_add_cb
,
aout
);
if
(
op
!=
NULL
)
if
(
likely
(
op
!=
NULL
))
{
while
(
pa_operation_get_state
(
op
)
==
PA_OPERATION_RUNNING
)
pa_threaded_mainloop_wait
(
sys
->
mainloop
);
pa_operation_unref
(
op
);
}
/* Context events */
const
pa_subscription_mask_t
mask
=
PA_SUBSCRIPTION_MASK_SINK
...
...
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