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
0d7cee0d
Commit
0d7cee0d
authored
Nov 03, 2015
by
Mark Harmstone
Committed by
Alexandre Julliard
Nov 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepulse: Handle stream create failing correctly.
Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b53256b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
mmdevdrv.c
dlls/winepulse.drv/mmdevdrv.c
+6
-0
No files found.
dlls/winepulse.drv/mmdevdrv.c
View file @
0d7cee0d
...
@@ -753,6 +753,12 @@ static HRESULT pulse_stream_connect(ACImpl *This, UINT32 period_bytes) {
...
@@ -753,6 +753,12 @@ static HRESULT pulse_stream_connect(ACImpl *This, UINT32 period_bytes) {
ret
=
InterlockedIncrement
(
&
number
);
ret
=
InterlockedIncrement
(
&
number
);
sprintf
(
buffer
,
"audio stream #%i"
,
ret
);
sprintf
(
buffer
,
"audio stream #%i"
,
ret
);
This
->
stream
=
pa_stream_new
(
pulse_ctx
,
buffer
,
&
This
->
ss
,
&
This
->
map
);
This
->
stream
=
pa_stream_new
(
pulse_ctx
,
buffer
,
&
This
->
ss
,
&
This
->
map
);
if
(
!
This
->
stream
)
{
WARN
(
"pa_stream_new returned error %i
\n
"
,
pa_context_errno
(
pulse_ctx
));
return
AUDCLNT_E_ENDPOINT_CREATE_FAILED
;
}
pa_stream_set_state_callback
(
This
->
stream
,
pulse_stream_state
,
This
);
pa_stream_set_state_callback
(
This
->
stream
,
pulse_stream_state
,
This
);
pa_stream_set_buffer_attr_callback
(
This
->
stream
,
pulse_attr_update
,
This
);
pa_stream_set_buffer_attr_callback
(
This
->
stream
,
pulse_attr_update
,
This
);
pa_stream_set_moved_callback
(
This
->
stream
,
pulse_attr_update
,
This
);
pa_stream_set_moved_callback
(
This
->
stream
,
pulse_attr_update
,
This
);
...
...
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