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
822c3fe9
Commit
822c3fe9
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 video renderer.
parent
6072a3b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
videorenderer.c
dlls/quartz/videorenderer.c
+35
-0
No files found.
dlls/quartz/videorenderer.c
View file @
822c3fe9
...
...
@@ -52,6 +52,7 @@ static const IUnknownVtbl IInner_VTable;
static
const
IBasicVideoVtbl
IBasicVideo_VTable
;
static
const
IVideoWindowVtbl
IVideoWindow_VTable
;
static
const
IPinVtbl
VideoRenderer_InputPin_Vtbl
;
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
;
typedef
struct
VideoRendererImpl
{
...
...
@@ -59,6 +60,7 @@ typedef struct VideoRendererImpl
const
IBasicVideoVtbl
*
IBasicVideo_vtbl
;
const
IVideoWindowVtbl
*
IVideoWindow_vtbl
;
const
IUnknownVtbl
*
IInner_vtbl
;
const
IAMFilterMiscFlagsVtbl
*
IAMFilterMiscFlags_vtbl
;
IUnknown
*
seekthru_unk
;
BaseInputPin
*
pInputPin
;
...
...
@@ -581,6 +583,7 @@ HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
pVideoRenderer
->
bUnkOuterValid
=
FALSE
;
pVideoRenderer
->
bAggregatable
=
FALSE
;
pVideoRenderer
->
IInner_vtbl
=
&
IInner_VTable
;
pVideoRenderer
->
IAMFilterMiscFlags_vtbl
=
&
IAMFilterMiscFlags_Vtbl
;
BaseFilter_Init
(
&
pVideoRenderer
->
filter
,
&
VideoRenderer_Vtbl
,
&
CLSID_VideoRenderer
,
(
DWORD_PTR
)(
__FILE__
": VideoRendererImpl.csFilter"
),
&
BaseFuncTable
);
...
...
@@ -666,6 +669,8 @@ static HRESULT WINAPI VideoRendererInner_QueryInterface(IUnknown * iface, REFIID
*
ppv
=
&
This
->
IVideoWindow_vtbl
;
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
)
{
...
...
@@ -2169,3 +2174,33 @@ static const IVideoWindowVtbl IVideoWindow_VTable =
Videowindow_HideCursor
,
Videowindow_IsCursorHidden
};
static
VideoRendererImpl
*
from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
(
VideoRendererImpl
*
)((
char
*
)
iface
-
offsetof
(
VideoRendererImpl
,
IAMFilterMiscFlags_vtbl
));
}
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
const
REFIID
riid
,
void
**
ppv
)
{
VideoRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_AddRef
(
IAMFilterMiscFlags
*
iface
)
{
VideoRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_Release
(
IAMFilterMiscFlags
*
iface
)
{
VideoRendererImpl
*
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