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
351165e3
Commit
351165e3
authored
Dec 10, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix a race condition in videorenderer endflush.
parent
b353f324
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
videorenderer.c
dlls/quartz/videorenderer.c
+10
-0
No files found.
dlls/quartz/videorenderer.c
View file @
351165e3
...
...
@@ -432,6 +432,7 @@ static HRESULT WINAPI VideoRenderer_Receive(BaseInputPin* pin, IMediaSample * pS
LeaveCriticalSection
(
&
This
->
filter
.
csFilter
);
WaitForSingleObject
(
This
->
blocked
,
INFINITE
);
EnterCriticalSection
(
&
This
->
filter
.
csFilter
);
SetEvent
(
This
->
hEvent
);
This
->
sample_held
=
NULL
;
if
(
This
->
filter
.
state
==
State_Paused
)
{
...
...
@@ -959,6 +960,15 @@ static HRESULT WINAPI VideoRenderer_InputPin_EndFlush(IPin * iface)
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
EnterCriticalSection
(
This
->
pin
.
pCritSec
);
if
(
pVideoRenderer
->
sample_held
)
{
SetEvent
(
pVideoRenderer
->
blocked
);
ResetEvent
(
pVideoRenderer
->
hEvent
);
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
WaitForSingleObject
(
pVideoRenderer
->
hEvent
,
INFINITE
);
EnterCriticalSection
(
This
->
pin
.
pCritSec
);
ResetEvent
(
pVideoRenderer
->
blocked
);
}
if
(
pVideoRenderer
->
filter
.
state
==
State_Paused
)
{
ResetEvent
(
pVideoRenderer
->
blocked
);
ResetEvent
(
pVideoRenderer
->
hEvent
);
...
...
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