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
02c859e4
Commit
02c859e4
authored
Jan 27, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/sar: Release pending items when audio client is released.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84b66e15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
sar.c
dlls/mf/sar.c
+6
-5
No files found.
dlls/mf/sar.c
View file @
02c859e4
...
...
@@ -228,7 +228,13 @@ static ULONG WINAPI audio_renderer_sink_AddRef(IMFMediaSink *iface)
static
void
audio_renderer_release_audio_client
(
struct
audio_renderer
*
renderer
)
{
struct
queued_object
*
obj
,
*
obj2
;
MFCancelWorkItem
(
renderer
->
buffer_ready_key
);
LIST_FOR_EACH_ENTRY_SAFE
(
obj
,
obj2
,
&
renderer
->
queue
,
struct
queued_object
,
entry
)
{
release_pending_object
(
obj
);
}
renderer
->
buffer_ready_key
=
0
;
if
(
renderer
->
audio_client
)
{
...
...
@@ -253,7 +259,6 @@ static ULONG WINAPI audio_renderer_sink_Release(IMFMediaSink *iface)
{
struct
audio_renderer
*
renderer
=
impl_from_IMFMediaSink
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
renderer
->
refcount
);
struct
queued_object
*
obj
,
*
obj2
;
TRACE
(
"%p, refcount %u.
\n
"
,
iface
,
refcount
);
...
...
@@ -273,10 +278,6 @@ static ULONG WINAPI audio_renderer_sink_Release(IMFMediaSink *iface)
IMFMediaType_Release
(
renderer
->
current_media_type
);
audio_renderer_release_audio_client
(
renderer
);
CloseHandle
(
renderer
->
buffer_ready_event
);
LIST_FOR_EACH_ENTRY_SAFE
(
obj
,
obj2
,
&
renderer
->
queue
,
struct
queued_object
,
entry
)
{
release_pending_object
(
obj
);
}
DeleteCriticalSection
(
&
renderer
->
cs
);
heap_free
(
renderer
);
}
...
...
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