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
d28971a2
Commit
d28971a2
authored
Jul 02, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: COM cleanup for IAMFilterMiscFlags in VideoRenderer.
parent
67cb8da5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
videorenderer.c
dlls/quartz/videorenderer.c
+18
-12
No files found.
dlls/quartz/videorenderer.c
View file @
d28971a2
...
...
@@ -55,7 +55,7 @@ typedef struct VideoRendererImpl
BaseControlVideo
baseControlVideo
;
const
IUnknownVtbl
*
IInner_vtbl
;
const
IAMFilterMiscFlagsVtbl
*
IAMFilterMiscFlags_vtbl
;
IAMFilterMiscFlags
IAMFilterMiscFlags_iface
;
BOOL
init
;
HANDLE
hThread
;
...
...
@@ -656,7 +656,7 @@ HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
pVideoRenderer
->
bUnkOuterValid
=
FALSE
;
pVideoRenderer
->
bAggregatable
=
FALSE
;
pVideoRenderer
->
IInner_vtbl
=
&
IInner_VTable
;
pVideoRenderer
->
IAMFilterMiscFlags_
v
tbl
=
&
IAMFilterMiscFlags_Vtbl
;
pVideoRenderer
->
IAMFilterMiscFlags_
iface
.
lpV
tbl
=
&
IAMFilterMiscFlags_Vtbl
;
pVideoRenderer
->
init
=
0
;
ZeroMemory
(
&
pVideoRenderer
->
SourceRect
,
sizeof
(
RECT
));
...
...
@@ -711,7 +711,7 @@ static HRESULT WINAPI VideoRendererInner_QueryInterface(IUnknown * iface, REFIID
else
if
(
IsEqualIID
(
riid
,
&
IID_IVideoWindow
))
*
ppv
=
&
This
->
baseControlWindow
.
IVideoWindow_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMFilterMiscFlags
))
*
ppv
=
&
This
->
IAMFilterMiscFlags_
vtbl
;
*
ppv
=
&
This
->
IAMFilterMiscFlags_
iface
;
else
{
HRESULT
hr
;
...
...
@@ -1050,26 +1050,32 @@ static const IVideoWindowVtbl IVideoWindow_VTable =
BaseControlWindowImpl_IsCursorHidden
};
static
VideoRendererImpl
*
from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
(
VideoRendererImpl
*
)((
char
*
)
iface
-
offsetof
(
VideoRendererImpl
,
IAMFilterMiscFlags_vtbl
));
static
VideoRendererImpl
*
impl_from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
VideoRendererImpl
,
IAMFilterMiscFlags_iface
);
}
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
VideoRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
VideoRendererImpl
*
This
=
impl_from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_AddRef
(
IAMFilterMiscFlags
*
iface
)
{
VideoRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
static
ULONG
WINAPI
AMFilterMiscFlags_AddRef
(
IAMFilterMiscFlags
*
iface
)
{
VideoRendererImpl
*
This
=
impl_from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_Release
(
IAMFilterMiscFlags
*
iface
)
{
VideoRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
static
ULONG
WINAPI
AMFilterMiscFlags_Release
(
IAMFilterMiscFlags
*
iface
)
{
VideoRendererImpl
*
This
=
impl_from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_Release
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_GetMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
static
ULONG
WINAPI
AMFilterMiscFlags_GetMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
AM_FILTER_MISC_FLAGS_IS_RENDERER
;
}
...
...
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