Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4e1b7cec
Commit
4e1b7cec
authored
Aug 28, 2022
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Use the predicate to terminate the connect cond_wait loop.
parent
3a481200
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
pulse.c
dlls/winepulse.drv/pulse.c
+7
-8
No files found.
dlls/winepulse.drv/pulse.c
View file @
4e1b7cec
...
...
@@ -363,6 +363,8 @@ static BOOL pulse_stream_valid(struct pulse_stream *stream)
static
HRESULT
pulse_connect
(
const
char
*
name
)
{
pa_context_state_t
state
;
if
(
pulse_ctx
&&
PA_CONTEXT_IS_GOOD
(
pa_context_get_state
(
pulse_ctx
)))
return
S_OK
;
if
(
pulse_ctx
)
...
...
@@ -381,15 +383,12 @@ static HRESULT pulse_connect(const char *name)
goto
fail
;
/* Wait for connection */
while
(
pulse_cond_wait
())
{
pa_context_state_t
state
=
pa_context_get_state
(
pulse_ctx
);
if
(
state
==
PA_CONTEXT_FAILED
||
state
==
PA_CONTEXT_TERMINATED
)
goto
fail
;
while
((
state
=
pa_context_get_state
(
pulse_ctx
))
!=
PA_CONTEXT_READY
&&
state
!=
PA_CONTEXT_FAILED
&&
state
!=
PA_CONTEXT_TERMINATED
)
pulse_cond_wait
();
if
(
state
==
PA_CONTEXT_READY
)
break
;
}
if
(
state
!=
PA_CONTEXT_READY
)
goto
fail
;
TRACE
(
"Connected to server %s with protocol version: %i.
\n
"
,
pa_context_get_server
(
pulse_ctx
),
...
...
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