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
ab735065
Commit
ab735065
authored
Jan 16, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: Lock the Transform filter csReceive around the decommpression callback.
parent
b32b1a92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
qtvdecoder.c
dlls/wineqtdecoder/qtvdecoder.c
+2
-4
No files found.
dlls/wineqtdecoder/qtvdecoder.c
View file @
ab735065
...
...
@@ -179,7 +179,7 @@ static void trackingCallback(
return
;
}
EnterCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
EnterCriticalSection
(
&
This
->
tf
.
csReceive
);
hr
=
BaseOutputPinImpl_GetDeliveryBuffer
((
BaseOutputPin
*
)
This
->
tf
.
ppPins
[
1
],
&
pOutSample
,
NULL
,
NULL
,
0
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to get delivery buffer (%x)
\n
"
,
hr
);
...
...
@@ -230,12 +230,12 @@ static void trackingCallback(
IMediaSample_SetTime
(
pOutSample
,
&
tStart
,
&
tStop
);
}
LeaveCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
hr
=
BaseOutputPinImpl_Deliver
((
BaseOutputPin
*
)
This
->
tf
.
ppPins
[
1
],
pOutSample
);
if
(
hr
!=
S_OK
&&
hr
!=
VFW_E_NOT_CONNECTED
)
ERR
(
"Error sending sample (%x)
\n
"
,
hr
);
error:
LeaveCriticalSection
(
&
This
->
tf
.
csReceive
);
if
(
pOutSample
)
IMediaSample_Release
(
pOutSample
);
...
...
@@ -278,7 +278,6 @@ static HRESULT WINAPI QTVDecoder_Receive(TransformFilter *tf, IMediaSample *pSam
OSStatus
err
=
noErr
;
LONGLONG
tStart
,
tStop
;
EnterCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
if
(
FAILED
(
hr
))
{
...
...
@@ -316,7 +315,6 @@ static HRESULT WINAPI QTVDecoder_Receive(TransformFilter *tf, IMediaSample *pSam
hr
=
This
->
decodeHR
;
error:
LeaveCriticalSection
(
&
This
->
tf
.
filter
.
csFilter
);
return
hr
;
}
...
...
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