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
4e761d26
Commit
4e761d26
authored
Apr 28, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Some state changes fixes.
parent
1ba8ece7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
pin.c
dlls/quartz/pin.c
+11
-7
No files found.
dlls/quartz/pin.c
View file @
4e761d26
...
...
@@ -1145,7 +1145,6 @@ HRESULT OutputPin_CommitAllocator(OutputPin * This)
TRACE
(
"(%p)->()
\n
"
,
This
);
EnterCriticalSection
(
This
->
pin
.
pCritSec
);
if
(
!
This
->
custom_allocator
)
{
if
(
!
This
->
pin
.
pConnectedTo
||
!
This
->
pMemInputPin
)
hr
=
VFW_E_NOT_CONNECTED
;
...
...
@@ -1164,6 +1163,7 @@ HRESULT OutputPin_CommitAllocator(OutputPin * This)
}
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
TRACE
(
"--> %08x
\n
"
,
hr
);
return
hr
;
}
...
...
@@ -1474,10 +1474,6 @@ static void CALLBACK PullPin_Thread_Process(PullPin *This)
IMediaSample
*
pSample
=
NULL
;
ALLOCATOR_PROPERTIES
allocProps
;
EnterCriticalSection
(
This
->
pin
.
pCritSec
);
SetEvent
(
This
->
hEventStateChanged
);
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
hr
=
IMemAllocator_GetProperties
(
This
->
pAlloc
,
&
allocProps
);
This
->
cbAlign
=
allocProps
.
cbAlign
;
...
...
@@ -1502,6 +1498,10 @@ static void CALLBACK PullPin_Thread_Process(PullPin *This)
if
(
FAILED
(
hr
))
ERR
(
"Request error: %x
\n
"
,
hr
);
EnterCriticalSection
(
This
->
pin
.
pCritSec
);
SetEvent
(
This
->
hEventStateChanged
);
LeaveCriticalSection
(
This
->
pin
.
pCritSec
);
do
{
DWORD_PTR
dwUser
;
...
...
@@ -1568,9 +1568,11 @@ static void CALLBACK PullPin_Thread_Process(PullPin *This)
/* Can't reset state to Sleepy here because that might race, instead PauseProcessing will do that for us
* Flush remaining samples
*/
PullPin_Flush
(
This
);
TRACE
(
"Almost done..
\n
"
);
if
(
This
->
fnDone
)
This
->
fnDone
(
This
->
pin
.
pUserData
);
PullPin_Flush
(
This
);
TRACE
(
"End: %08x, %d
\n
"
,
hr
,
This
->
stop_playback
);
}
...
...
@@ -1706,6 +1708,9 @@ HRESULT PullPin_PauseProcessing(PullPin * This)
PullPin_WaitForStateChange
(
This
,
INFINITE
);
EnterCriticalSection
(
This
->
pin
.
pCritSec
);
/* Faster! */
IAsyncReader_BeginFlush
(
This
->
pReader
);
assert
(
!
This
->
stop_playback
);
assert
(
This
->
state
==
Req_Run
||
This
->
state
==
Req_Sleepy
);
...
...
@@ -1737,7 +1742,6 @@ HRESULT PullPin_StopProcessing(PullPin * This)
assert
(
WaitForSingleObject
(
This
->
thread_sleepy
,
0
)
==
WAIT_TIMEOUT
);
ResetEvent
(
This
->
hEventStateChanged
);
SetEvent
(
This
->
thread_sleepy
);
return
S_OK
;
}
...
...
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