Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
def6e1c7
Commit
def6e1c7
authored
Jun 17, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Jun 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Use mmdevapi's stream_release.
parent
d49a6b77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
mmdevdrv.c
dlls/winecoreaudio.drv/mmdevdrv.c
+4
-7
No files found.
dlls/winecoreaudio.drv/mmdevdrv.c
View file @
def6e1c7
...
...
@@ -75,6 +75,8 @@ extern HRESULT main_loop_start(void) DECLSPEC_HIDDEN;
extern
struct
audio_session_wrapper
*
session_wrapper_create
(
struct
audio_client
*
client
)
DECLSPEC_HIDDEN
;
extern
HRESULT
stream_release
(
stream_handle
stream
,
HANDLE
timer_thread
);
extern
WCHAR
*
get_application_name
(
void
);
void
DECLSPEC_HIDDEN
sessions_lock
(
void
)
...
...
@@ -417,10 +419,7 @@ static ULONG WINAPI AudioClient_Release(IAudioClient3 *iface)
TRACE
(
"(%p) Refcount now %lu
\n
"
,
This
,
ref
);
if
(
!
ref
){
if
(
This
->
stream
){
struct
release_stream_params
params
;
params
.
stream
=
This
->
stream
;
params
.
timer_thread
=
This
->
timer_thread
;
UNIX_CALL
(
release_stream
,
&
params
);
stream_release
(
This
->
stream
,
This
->
timer_thread
);
This
->
stream
=
0
;
sessions_lock
();
...
...
@@ -554,7 +553,6 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
const
GUID
*
sessionguid
)
{
ACImpl
*
This
=
impl_from_IAudioClient3
(
iface
);
struct
release_stream_params
release_params
;
struct
create_stream_params
params
;
stream_handle
stream
;
UINT32
i
;
...
...
@@ -635,8 +633,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
end:
if
(
FAILED
(
params
.
result
)){
release_params
.
stream
=
stream
;
UNIX_CALL
(
release_stream
,
&
release_params
);
stream_release
(
stream
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
vols
);
This
->
vols
=
NULL
;
}
else
{
...
...
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