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
23f52cb7
Commit
23f52cb7
authored
Jun 30, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr: Add IMFTopologyServiceLookupClient stub for the presenter.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
50eb5eba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
presenter.c
dlls/evr/presenter.c
+54
-0
evr.c
dlls/evr/tests/evr.c
+5
-0
No files found.
dlls/evr/presenter.c
View file @
23f52cb7
...
...
@@ -35,6 +35,7 @@ struct video_presenter
{
IMFVideoPresenter
IMFVideoPresenter_iface
;
IMFVideoDeviceID
IMFVideoDeviceID_iface
;
IMFTopologyServiceLookupClient
IMFTopologyServiceLookupClient_iface
;
IUnknown
IUnknown_inner
;
IUnknown
*
outer_unk
;
LONG
refcount
;
...
...
@@ -55,6 +56,11 @@ static struct video_presenter *impl_from_IMFVideoDeviceID(IMFVideoDeviceID *ifac
return
CONTAINING_RECORD
(
iface
,
struct
video_presenter
,
IMFVideoDeviceID_iface
);
}
static
struct
video_presenter
*
impl_from_IMFTopologyServiceLookupClient
(
IMFTopologyServiceLookupClient
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
video_presenter
,
IMFTopologyServiceLookupClient_iface
);
}
static
HRESULT
WINAPI
video_presenter_inner_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
video_presenter
*
presenter
=
impl_from_IUnknown
(
iface
);
...
...
@@ -74,6 +80,10 @@ static HRESULT WINAPI video_presenter_inner_QueryInterface(IUnknown *iface, REFI
{
*
obj
=
&
presenter
->
IMFVideoDeviceID_iface
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IMFTopologyServiceLookupClient
))
{
*
obj
=
&
presenter
->
IMFTopologyServiceLookupClient_iface
;
}
else
{
WARN
(
"Unimplemented interface %s.
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -236,6 +246,49 @@ static const IMFVideoDeviceIDVtbl video_presenter_device_id_vtbl =
video_presenter_device_id_GetDeviceID
,
};
static
HRESULT
WINAPI
video_presenter_service_client_QueryInterface
(
IMFTopologyServiceLookupClient
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
video_presenter
*
presenter
=
impl_from_IMFTopologyServiceLookupClient
(
iface
);
return
IMFVideoPresenter_QueryInterface
(
&
presenter
->
IMFVideoPresenter_iface
,
riid
,
obj
);
}
static
ULONG
WINAPI
video_presenter_service_client_AddRef
(
IMFTopologyServiceLookupClient
*
iface
)
{
struct
video_presenter
*
presenter
=
impl_from_IMFTopologyServiceLookupClient
(
iface
);
return
IMFVideoPresenter_AddRef
(
&
presenter
->
IMFVideoPresenter_iface
);
}
static
ULONG
WINAPI
video_presenter_service_client_Release
(
IMFTopologyServiceLookupClient
*
iface
)
{
struct
video_presenter
*
presenter
=
impl_from_IMFTopologyServiceLookupClient
(
iface
);
return
IMFVideoPresenter_Release
(
&
presenter
->
IMFVideoPresenter_iface
);
}
static
HRESULT
WINAPI
video_presenter_service_client_InitServicePointers
(
IMFTopologyServiceLookupClient
*
iface
,
IMFTopologyServiceLookup
*
service_lookup
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
service_lookup
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
video_presenter_service_client_ReleaseServicePointers
(
IMFTopologyServiceLookupClient
*
iface
)
{
FIXME
(
"%p.
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
const
IMFTopologyServiceLookupClientVtbl
video_presenter_service_client_vtbl
=
{
video_presenter_service_client_QueryInterface
,
video_presenter_service_client_AddRef
,
video_presenter_service_client_Release
,
video_presenter_service_client_InitServicePointers
,
video_presenter_service_client_ReleaseServicePointers
,
};
HRESULT
WINAPI
MFCreateVideoPresenter
(
IUnknown
*
owner
,
REFIID
riid_device
,
REFIID
riid
,
void
**
obj
)
{
TRACE
(
"%p, %s, %s, %p.
\n
"
,
owner
,
debugstr_guid
(
riid_device
),
debugstr_guid
(
riid
),
obj
);
...
...
@@ -257,6 +310,7 @@ HRESULT evr_presenter_create(IUnknown *outer, void **out)
object
->
IMFVideoPresenter_iface
.
lpVtbl
=
&
video_presenter_vtbl
;
object
->
IMFVideoDeviceID_iface
.
lpVtbl
=
&
video_presenter_device_id_vtbl
;
object
->
IMFTopologyServiceLookupClient_iface
.
lpVtbl
=
&
video_presenter_service_client_vtbl
;
object
->
IUnknown_inner
.
lpVtbl
=
&
video_presenter_inner_vtbl
;
object
->
outer_unk
=
outer
?
outer
:
&
object
->
IUnknown_inner
;
object
->
refcount
=
1
;
...
...
dlls/evr/tests/evr.c
View file @
23f52cb7
...
...
@@ -870,6 +870,7 @@ static void test_default_presenter(void)
{
IMFVideoPresenter
*
presenter
;
IMFVideoDeviceID
*
deviceid
;
IUnknown
*
unk
;
HRESULT
hr
;
GUID
iid
;
...
...
@@ -893,6 +894,10 @@ static void test_default_presenter(void)
IMFVideoDeviceID_Release
(
deviceid
);
hr
=
IMFVideoPresenter_QueryInterface
(
presenter
,
&
IID_IMFTopologyServiceLookupClient
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IUnknown_Release
(
unk
);
IMFVideoPresenter_Release
(
presenter
);
}
...
...
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