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
53d8a28a
Commit
53d8a28a
authored
Jan 19, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/acmwrapper: Use the strmbase stream lock.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
480ece6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
acmwrapper.c
dlls/quartz/acmwrapper.c
+0
-11
No files found.
dlls/quartz/acmwrapper.c
View file @
53d8a28a
...
...
@@ -38,7 +38,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(quartz);
struct
acm_wrapper
{
struct
strmbase_filter
filter
;
CRITICAL_SECTION
stream_cs
;
struct
strmbase_source
source
;
IQualityControl
source_IQualityControl_iface
;
...
...
@@ -108,13 +107,10 @@ static HRESULT WINAPI acm_wrapper_sink_Receive(struct strmbase_sink *iface, IMed
if
(
This
->
sink
.
flushing
)
return
S_FALSE
;
EnterCriticalSection
(
&
This
->
stream_cs
);
hr
=
IMediaSample_GetPointer
(
pSample
,
&
pbSrcStream
);
if
(
FAILED
(
hr
))
{
ERR
(
"Cannot get pointer to sample data (%x)
\n
"
,
hr
);
LeaveCriticalSection
(
&
This
->
stream_cs
);
return
hr
;
}
...
...
@@ -150,7 +146,6 @@ static HRESULT WINAPI acm_wrapper_sink_Receive(struct strmbase_sink *iface, IMed
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to get delivery buffer (%x)
\n
"
,
hr
);
LeaveCriticalSection
(
&
This
->
stream_cs
);
return
hr
;
}
IMediaSample_SetPreroll
(
pOutSample
,
preroll
);
...
...
@@ -267,7 +262,6 @@ error:
This
->
lasttime_real
=
tStop
;
This
->
lasttime_sent
=
tMed
;
LeaveCriticalSection
(
&
This
->
stream_cs
);
return
hr
;
}
...
...
@@ -487,8 +481,6 @@ static void acm_wrapper_destroy(struct strmbase_filter *iface)
strmbase_source_cleanup
(
&
filter
->
source
);
strmbase_passthrough_cleanup
(
&
filter
->
passthrough
);
filter
->
stream_cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
filter
->
stream_cs
);
FreeMediaType
(
&
filter
->
mt
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
free
(
filter
);
...
...
@@ -532,9 +524,6 @@ HRESULT acm_wrapper_create(IUnknown *outer, IUnknown **out)
strmbase_filter_init
(
&
object
->
filter
,
outer
,
&
CLSID_ACMWrapper
,
&
filter_ops
);
InitializeCriticalSection
(
&
object
->
stream_cs
);
object
->
stream_cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": acm_wrapper.stream_cs"
);
strmbase_sink_init
(
&
object
->
sink
,
&
object
->
filter
,
L"In"
,
&
sink_ops
,
NULL
);
strmbase_source_init
(
&
object
->
source
,
&
object
->
filter
,
L"Out"
,
&
source_ops
);
...
...
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