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
d686663d
Commit
d686663d
authored
May 10, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/sample: Use explicit critical section for release handling.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ce71f5a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sample.c
dlls/evr/sample.c
+2
-2
No files found.
dlls/evr/sample.c
View file @
d686663d
...
@@ -923,7 +923,7 @@ static ULONG WINAPI video_sample_Release(IMFSample *iface)
...
@@ -923,7 +923,7 @@ static ULONG WINAPI video_sample_Release(IMFSample *iface)
ULONG
refcount
=
InterlockedDecrement
(
&
sample
->
refcount
);
ULONG
refcount
=
InterlockedDecrement
(
&
sample
->
refcount
);
IMFAsyncResult
*
tracked_result
=
NULL
;
IMFAsyncResult
*
tracked_result
=
NULL
;
IMFSample_LockStore
(
sample
->
sample
);
EnterCriticalSection
(
&
sample
->
cs
);
if
(
sample
->
tracked_result
&&
sample
->
tracked_refcount
==
refcount
)
if
(
sample
->
tracked_result
&&
sample
->
tracked_refcount
==
refcount
)
{
{
tracked_result
=
sample
->
tracked_result
;
tracked_result
=
sample
->
tracked_result
;
...
@@ -931,7 +931,7 @@ static ULONG WINAPI video_sample_Release(IMFSample *iface)
...
@@ -931,7 +931,7 @@ static ULONG WINAPI video_sample_Release(IMFSample *iface)
sample
->
tracked_result
=
NULL
;
sample
->
tracked_result
=
NULL
;
sample
->
tracked_refcount
=
0
;
sample
->
tracked_refcount
=
0
;
}
}
IMFSample_UnlockStore
(
sample
->
sample
);
LeaveCriticalSection
(
&
sample
->
cs
);
if
(
tracked_result
)
if
(
tracked_result
)
IMFAsyncResult_Release
(
tracked_result
);
IMFAsyncResult_Release
(
tracked_result
);
...
...
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