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
12965264
Commit
12965264
authored
May 27, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase/renderer: Add a destructor callback.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e2194b93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
renderer.c
dlls/strmbase/renderer.c
+12
-4
strmbase.h
include/wine/strmbase.h
+1
-0
No files found.
dlls/strmbase/renderer.c
View file @
12965264
...
...
@@ -194,6 +194,18 @@ static IPin *renderer_get_pin(BaseFilter *iface, unsigned int index)
return
&
This
->
pInputPin
->
pin
.
IPin_iface
;
}
static
void
renderer_destroy
(
BaseFilter
*
iface
)
{
BaseRenderer
*
filter
=
impl_from_BaseFilter
(
iface
);
filter
->
pFuncsTable
->
renderer_destroy
(
filter
);
}
static
const
BaseFilterFuncTable
RendererBaseFilterFuncTable
=
{
.
filter_get_pin
=
renderer_get_pin
,
.
filter_destroy
=
renderer_destroy
,
};
static
HRESULT
WINAPI
BaseRenderer_Input_CheckMediaType
(
BasePin
*
pin
,
const
AM_MEDIA_TYPE
*
pmt
)
{
BaseRenderer
*
This
=
impl_from_IBaseFilter
(
pin
->
pinInfo
.
pFilter
);
...
...
@@ -206,10 +218,6 @@ static HRESULT WINAPI BaseRenderer_Receive(BaseInputPin *pin, IMediaSample * pSa
return
BaseRendererImpl_Receive
(
This
,
pSample
);
}
static
const
BaseFilterFuncTable
RendererBaseFilterFuncTable
=
{
.
filter_get_pin
=
renderer_get_pin
,
};
static
const
BaseInputPinFuncTable
input_BaseInputFuncTable
=
{
{
BaseRenderer_Input_CheckMediaType
,
...
...
include/wine/strmbase.h
View file @
12965264
...
...
@@ -604,6 +604,7 @@ typedef struct BaseRendererFuncTable {
BaseRenderer_EndOfStream
pfnEndOfStream
;
BaseRenderer_BeginFlush
pfnBeginFlush
;
BaseRenderer_EndFlush
pfnEndFlush
;
void
(
*
renderer_destroy
)(
BaseRenderer
*
iface
);
}
BaseRendererFuncTable
;
HRESULT
WINAPI
BaseRendererImpl_QueryInterface
(
IBaseFilter
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
);
...
...
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