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
58f7c782
Commit
58f7c782
authored
Jul 08, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Forward mixer service requests to the mixer.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
52f8191b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
evr.c
dlls/mf/evr.c
+21
-2
mf.c
dlls/mf/tests/mf.c
+6
-0
No files found.
dlls/mf/evr.c
View file @
58f7c782
...
...
@@ -468,9 +468,28 @@ static ULONG WINAPI video_renderer_get_service_Release(IMFGetService *iface)
static
HRESULT
WINAPI
video_renderer_get_service_GetService
(
IMFGetService
*
iface
,
REFGUID
service
,
REFIID
riid
,
void
**
obj
)
{
FIXME
(
"%p, %s, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
service
),
debugstr_guid
(
riid
),
obj
);
struct
video_renderer
*
renderer
=
impl_from_IMFGetService
(
iface
);
HRESULT
hr
=
E_NOINTERFACE
;
IMFGetService
*
gs
=
NULL
;
return
E_NOTIMPL
;
TRACE
(
"%p, %s, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
service
),
debugstr_guid
(
riid
),
obj
);
if
(
IsEqualGUID
(
service
,
&
MR_VIDEO_MIXER_SERVICE
))
{
hr
=
IMFTransform_QueryInterface
(
renderer
->
mixer
,
&
IID_IMFGetService
,
(
void
**
)
&
gs
);
}
else
{
FIXME
(
"Unsupported service %s.
\n
"
,
debugstr_guid
(
service
));
}
if
(
gs
)
{
hr
=
IMFGetService_GetService
(
gs
,
service
,
riid
,
obj
);
IMFGetService_Release
(
gs
);
}
return
hr
;
}
static
const
IMFGetServiceVtbl
video_renderer_get_service_vtbl
=
...
...
dlls/mf/tests/mf.c
View file @
58f7c782
...
...
@@ -3235,6 +3235,7 @@ static void test_evr(void)
IMFActivate
*
activate
;
DWORD
flags
,
count
;
IMFGetService
*
gs
;
IUnknown
*
unk
;
UINT64
value
;
HRESULT
hr
;
...
...
@@ -3280,6 +3281,11 @@ static void test_evr(void)
hr
=
IMFMediaSink_QueryInterface
(
sink
,
&
IID_IMFGetService
,
(
void
**
)
&
gs
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFGetService_GetService
(
gs
,
&
MR_VIDEO_MIXER_SERVICE
,
&
IID_IMFVideoMixerControl
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IUnknown_Release
(
unk
);
IMFGetService_Release
(
gs
);
hr
=
IMFActivate_ShutdownObject
(
activate
);
...
...
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