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
9ff3db52
Commit
9ff3db52
authored
May 15, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Factor out strmbase_renderer_cleanup().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
042e0625
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
23 deletions
+28
-23
renderer.c
dlls/strmbase/renderer.c
+27
-23
strmbase.h
include/wine/strmbase.h
+1
-0
No files found.
dlls/strmbase/renderer.c
View file @
9ff3db52
...
...
@@ -275,36 +275,40 @@ HRESULT WINAPI BaseRendererImpl_QueryInterface(IBaseFilter* iface, REFIID riid,
return
BaseFilterImpl_QueryInterface
(
iface
,
riid
,
ppv
);
}
ULONG
WINAPI
BaseRendererImpl_Release
(
IBaseFilter
*
iface
)
void
strmbase_renderer_cleanup
(
BaseRenderer
*
filter
)
{
BaseRenderer
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
filter
.
refCount
);
IPin
*
peer
;
if
(
!
refCount
)
if
(
SUCCEEDED
(
IPin_ConnectedTo
(
&
filter
->
pInputPin
->
pin
.
IPin_iface
,
&
peer
))
)
{
IPin
*
pConnectedTo
;
IPin_Disconnect
(
peer
);
IPin_Release
(
peer
);
}
IPin_Disconnect
(
&
filter
->
pInputPin
->
pin
.
IPin_iface
);
IPin_Release
(
&
filter
->
pInputPin
->
pin
.
IPin_iface
);
if
(
SUCCEEDED
(
IPin_ConnectedTo
(
&
This
->
pInputPin
->
pin
.
IPin_iface
,
&
pConnectedTo
)))
{
IPin_Disconnect
(
pConnectedTo
);
IPin_Release
(
pConnectedTo
);
}
IPin_Disconnect
(
&
This
->
pInputPin
->
pin
.
IPin_iface
);
IPin_Release
(
&
This
->
pInputPin
->
pin
.
IPin_iface
);
if
(
filter
->
pPosition
)
IUnknown_Release
(
filter
->
pPosition
);
filter
->
csRenderLock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
filter
->
csRenderLock
);
if
(
This
->
pPosition
)
IUnknown_Release
(
This
->
pPosition
);
BaseRendererImpl_ClearPendingSample
(
filter
);
CloseHandle
(
filter
->
evComplete
);
CloseHandle
(
filter
->
ThreadSignal
);
CloseHandle
(
filter
->
RenderEvent
);
QualityControlImpl_Destroy
(
filter
->
qcimpl
);
BaseFilter_Destroy
(
&
filter
->
filter
);
}
ULONG
WINAPI
BaseRendererImpl_Release
(
IBaseFilter
*
iface
)
{
BaseRenderer
*
This
=
impl_from_IBaseFilter
(
iface
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
filter
.
refCount
);
This
->
csRenderLock
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
csRenderLock
);
if
(
!
refCount
)
strmbase_renderer_cleanup
(
This
);
BaseRendererImpl_ClearPendingSample
(
This
);
CloseHandle
(
This
->
evComplete
);
CloseHandle
(
This
->
ThreadSignal
);
CloseHandle
(
This
->
RenderEvent
);
QualityControlImpl_Destroy
(
This
->
qcimpl
);
BaseFilter_Destroy
(
&
This
->
filter
);
}
return
refCount
;
}
...
...
include/wine/strmbase.h
View file @
9ff3db52
...
...
@@ -623,6 +623,7 @@ HRESULT WINAPI BaseRendererImpl_ClearPendingSample(BaseRenderer *iface);
HRESULT
WINAPI
strmbase_renderer_init
(
BaseRenderer
*
filter
,
const
IBaseFilterVtbl
*
vtbl
,
IUnknown
*
outer
,
const
CLSID
*
clsid
,
const
WCHAR
*
sink_name
,
DWORD_PTR
debug_info
,
const
BaseRendererFuncTable
*
func_table
);
void
strmbase_renderer_cleanup
(
BaseRenderer
*
filter
);
#ifdef __IBasicAudio_FWD_DEFINED__
typedef
struct
tagBasicAudio
...
...
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