Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5e63f7f9
Commit
5e63f7f9
authored
Jun 11, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Use strmbase IUnknown methods for IVideoWindow.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
89cf4cba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
67 deletions
+6
-67
videorenderer.c
dlls/quartz/videorenderer.c
+3
-31
vmr9.c
dlls/quartz/vmr9.c
+3
-36
No files found.
dlls/quartz/videorenderer.c
View file @
5e63f7f9
...
...
@@ -708,34 +708,6 @@ static const IBaseFilterVtbl VideoRenderer_Vtbl =
BaseFilterImpl_QueryVendorInfo
};
/*** IUnknown methods ***/
static
HRESULT
WINAPI
VideoWindow_QueryInterface
(
IVideoWindow
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
VideoRendererImpl
*
This
=
impl_from_IVideoWindow
(
iface
);
TRACE
(
"(%p/%p)->(%s, %p)
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
ppvObj
);
return
IUnknown_QueryInterface
(
This
->
renderer
.
filter
.
outer_unk
,
riid
,
ppvObj
);
}
static
ULONG
WINAPI
VideoWindow_AddRef
(
IVideoWindow
*
iface
)
{
VideoRendererImpl
*
This
=
impl_from_IVideoWindow
(
iface
);
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
return
IUnknown_AddRef
(
This
->
renderer
.
filter
.
outer_unk
);
}
static
ULONG
WINAPI
VideoWindow_Release
(
IVideoWindow
*
iface
)
{
VideoRendererImpl
*
This
=
impl_from_IVideoWindow
(
iface
);
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
return
IUnknown_Release
(
This
->
renderer
.
filter
.
outer_unk
);
}
static
HRESULT
WINAPI
VideoWindow_get_FullScreenMode
(
IVideoWindow
*
iface
,
LONG
*
FullScreenMode
)
{
...
...
@@ -781,9 +753,9 @@ static HRESULT WINAPI VideoWindow_put_FullScreenMode(IVideoWindow *iface,
static
const
IVideoWindowVtbl
IVideoWindow_VTable
=
{
VideoWindow
_QueryInterface
,
VideoWindow
_AddRef
,
VideoWindow
_Release
,
BaseControlWindowImpl
_QueryInterface
,
BaseControlWindowImpl
_AddRef
,
BaseControlWindowImpl
_Release
,
BaseControlWindowImpl_GetTypeInfoCount
,
BaseControlWindowImpl_GetTypeInfo
,
BaseControlWindowImpl_GetIDsOfNames
,
...
...
dlls/quartz/vmr9.c
View file @
5e63f7f9
...
...
@@ -95,11 +95,6 @@ static inline struct quartz_vmr *impl_from_BaseWindow(BaseWindow *wnd)
return
CONTAINING_RECORD
(
wnd
,
struct
quartz_vmr
,
baseControlWindow
.
baseWindow
);
}
static
inline
struct
quartz_vmr
*
impl_from_IVideoWindow
(
IVideoWindow
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
quartz_vmr
,
baseControlWindow
.
IVideoWindow_iface
);
}
static
inline
struct
quartz_vmr
*
impl_from_BaseControlVideo
(
BaseControlVideo
*
cvid
)
{
return
CONTAINING_RECORD
(
cvid
,
struct
quartz_vmr
,
baseControlVideo
);
...
...
@@ -809,39 +804,11 @@ static const IBaseFilterVtbl VMR_Vtbl =
BaseFilterImpl_QueryVendorInfo
};
/*** IUnknown methods ***/
static
HRESULT
WINAPI
Videowindow_QueryInterface
(
IVideoWindow
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
struct
quartz_vmr
*
This
=
impl_from_IVideoWindow
(
iface
);
TRACE
(
"(%p/%p)->(%s, %p)
\n
"
,
This
,
iface
,
debugstr_guid
(
riid
),
ppvObj
);
return
IUnknown_QueryInterface
(
This
->
renderer
.
filter
.
outer_unk
,
riid
,
ppvObj
);
}
static
ULONG
WINAPI
Videowindow_AddRef
(
IVideoWindow
*
iface
)
{
struct
quartz_vmr
*
This
=
impl_from_IVideoWindow
(
iface
);
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
return
IUnknown_AddRef
(
This
->
renderer
.
filter
.
outer_unk
);
}
static
ULONG
WINAPI
Videowindow_Release
(
IVideoWindow
*
iface
)
{
struct
quartz_vmr
*
This
=
impl_from_IVideoWindow
(
iface
);
TRACE
(
"(%p/%p)->()
\n
"
,
This
,
iface
);
return
IUnknown_Release
(
This
->
renderer
.
filter
.
outer_unk
);
}
static
const
IVideoWindowVtbl
IVideoWindow_VTable
=
{
Videowindow
_QueryInterface
,
Videowindow
_AddRef
,
Videowindow
_Release
,
BaseControlWindowImpl
_QueryInterface
,
BaseControlWindowImpl
_AddRef
,
BaseControlWindowImpl
_Release
,
BaseControlWindowImpl_GetTypeInfoCount
,
BaseControlWindowImpl_GetTypeInfo
,
BaseControlWindowImpl_GetIDsOfNames
,
...
...
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