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
443e24fe
Commit
443e24fe
authored
Nov 04, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add IAMFilterMiscFlags to null renderer.
parent
79f717bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
nullrenderer.c
dlls/quartz/nullrenderer.c
+35
-0
No files found.
dlls/quartz/nullrenderer.c
View file @
443e24fe
...
...
@@ -48,11 +48,13 @@ static const WCHAR wcsAltInputPinName[] = {'I','n',0};
static
const
IBaseFilterVtbl
NullRenderer_Vtbl
;
static
const
IUnknownVtbl
IInner_VTable
;
static
const
IPinVtbl
NullRenderer_InputPin_Vtbl
;
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
;
typedef
struct
NullRendererImpl
{
BaseFilter
filter
;
const
IUnknownVtbl
*
IInner_vtbl
;
const
IAMFilterMiscFlagsVtbl
*
IAMFilterMiscFlags_vtbl
;
IUnknown
*
seekthru_unk
;
BaseInputPin
*
pInputPin
;
...
...
@@ -133,6 +135,7 @@ HRESULT NullRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
pNullRenderer
->
bUnkOuterValid
=
FALSE
;
pNullRenderer
->
bAggregatable
=
FALSE
;
pNullRenderer
->
IInner_vtbl
=
&
IInner_VTable
;
pNullRenderer
->
IAMFilterMiscFlags_vtbl
=
&
IAMFilterMiscFlags_Vtbl
;
BaseFilter_Init
(
&
pNullRenderer
->
filter
,
&
NullRenderer_Vtbl
,
&
CLSID_NullRenderer
,
(
DWORD_PTR
)(
__FILE__
": NullRendererImpl.csFilter"
),
&
BaseFuncTable
);
...
...
@@ -185,6 +188,8 @@ static HRESULT WINAPI NullRendererInner_QueryInterface(IUnknown * iface, REFIID
*
ppv
=
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
return
IUnknown_QueryInterface
(
This
->
seekthru_unk
,
riid
,
ppv
);
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMFilterMiscFlags
))
*
ppv
=
&
This
->
IAMFilterMiscFlags_vtbl
;
if
(
*
ppv
)
{
...
...
@@ -468,3 +473,33 @@ static const IPinVtbl NullRenderer_InputPin_Vtbl =
NullRenderer_InputPin_EndFlush
,
BaseInputPinImpl_NewSegment
};
static
NullRendererImpl
*
from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
(
NullRendererImpl
*
)((
char
*
)
iface
-
offsetof
(
NullRendererImpl
,
IAMFilterMiscFlags_vtbl
));
}
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
const
REFIID
riid
,
void
**
ppv
)
{
NullRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_AddRef
(
IAMFilterMiscFlags
*
iface
)
{
NullRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_Release
(
IAMFilterMiscFlags
*
iface
)
{
NullRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_Release
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_GetMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
AM_FILTER_MISC_FLAGS_IS_RENDERER
;
}
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
=
{
AMFilterMiscFlags_QueryInterface
,
AMFilterMiscFlags_AddRef
,
AMFilterMiscFlags_Release
,
AMFilterMiscFlags_GetMiscFlags
};
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