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
0e43ee27
Commit
0e43ee27
authored
Apr 16, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Return current clock for MR_VIDEO_RENDER_SERVICE requests.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55110df7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
3 deletions
+40
-3
evr.c
dlls/mf/evr.c
+7
-0
mf.c
dlls/mf/tests/mf.c
+33
-3
No files found.
dlls/mf/evr.c
View file @
0e43ee27
...
...
@@ -2068,6 +2068,13 @@ static HRESULT WINAPI video_renderer_service_lookup_LookupService(IMFTopologySer
*
objects
=
&
renderer
->
IMediaEventSink_iface
;
IUnknown_AddRef
((
IUnknown
*
)
*
objects
);
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IMFClock
))
{
*
objects
=
renderer
->
clock
;
if
(
*
objects
)
IUnknown_AddRef
((
IUnknown
*
)
*
objects
);
hr
=
*
objects
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"Unsupported interface %s for render service.
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/mf/tests/mf.c
View file @
0e43ee27
...
...
@@ -4212,9 +4212,11 @@ static void test_evr(void)
IMFStreamSink
*
stream_sink
,
*
stream_sink2
;
IMFVideoDisplayControl
*
display_control
;
IMFMediaType
*
media_type
,
*
media_type2
;
IMFPresentationTimeSource
*
time_source
;
IMFVideoSampleAllocator
*
allocator
;
IMFMediaTypeHandler
*
type_handler
;
IMFVideoRenderer
*
video_renderer
;
IMFPresentationClock
*
clock
;
IMFMediaSink
*
sink
,
*
sink2
;
IMFAttributes
*
attributes
;
DWORD
flags
,
count
,
value
;
...
...
@@ -4228,8 +4230,8 @@ static void test_evr(void)
HRESULT
hr
;
GUID
guid
;
hr
=
CoInitialize
(
N
ULL
);
ok
(
hr
==
S_OK
,
"
Failed to initializ
e, hr %#x.
\n
"
,
hr
);
hr
=
MFStartup
(
MF_VERSION
,
MFSTARTUP_F
ULL
);
ok
(
hr
==
S_OK
,
"
Startup failur
e, hr %#x.
\n
"
,
hr
);
hr
=
MFCreateVideoRenderer
(
&
IID_IMFVideoRenderer
,
(
void
**
)
&
video_renderer
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
...
...
@@ -4481,7 +4483,35 @@ todo_wine
IMFActivate_Release
(
activate
);
CoUninitialize
();
/* Set clock. */
window
=
create_window
();
hr
=
MFCreateVideoRendererActivate
(
window
,
&
activate
);
ok
(
hr
==
S_OK
,
"Failed to create activate object, hr %#x.
\n
"
,
hr
);
hr
=
IMFActivate_ActivateObject
(
activate
,
&
IID_IMFMediaSink
,
(
void
**
)
&
sink
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
MFCreateSystemTimeSource
(
&
time_source
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
MFCreatePresentationClock
(
&
clock
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFPresentationClock_SetTimeSource
(
clock
,
time_source
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IMFPresentationTimeSource_Release
(
time_source
);
hr
=
IMFMediaSink_SetPresentationClock
(
sink
,
clock
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IMFPresentationClock_Release
(
clock
);
IMFActivate_Release
(
activate
);
DestroyWindow
(
window
);
hr
=
MFShutdown
();
ok
(
hr
==
S_OK
,
"Shutdown failure, hr %#x.
\n
"
,
hr
);
}
static
void
test_MFCreateSimpleTypeHandler
(
void
)
...
...
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