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
34ffec67
Commit
34ffec67
authored
May 31, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Get presentation clock flags from current time source.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0efb33c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
session.c
dlls/mf/session.c
+12
-2
mf.c
dlls/mf/tests/mf.c
+10
-1
No files found.
dlls/mf/session.c
View file @
34ffec67
...
...
@@ -841,9 +841,19 @@ static ULONG WINAPI present_clock_Release(IMFPresentationClock *iface)
static
HRESULT
WINAPI
present_clock_GetClockCharacteristics
(
IMFPresentationClock
*
iface
,
DWORD
*
flags
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
flags
);
struct
presentation_clock
*
clock
=
impl_from_IMFPresentationClock
(
iface
);
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
flags
);
EnterCriticalSection
(
&
clock
->
cs
);
if
(
clock
->
time_source
)
hr
=
IMFPresentationTimeSource_GetClockCharacteristics
(
clock
->
time_source
,
flags
);
else
hr
=
MF_E_CLOCK_NO_TIME_SOURCE
;
LeaveCriticalSection
(
&
clock
->
cs
);
return
hr
;
}
static
HRESULT
WINAPI
present_clock_GetCorrelatedTime
(
IMFPresentationClock
*
iface
,
DWORD
reserved
,
...
...
dlls/mf/tests/mf.c
View file @
34ffec67
...
...
@@ -1449,7 +1449,6 @@ static void test_presentation_clock(void)
ok
(
hr
==
MF_E_CLOCK_NO_TIME_SOURCE
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFPresentationClock_GetClockCharacteristics
(
clock
,
&
value
);
todo_wine
ok
(
hr
==
MF_E_CLOCK_NO_TIME_SOURCE
,
"Unexpected hr %#x.
\n
"
,
hr
);
value
=
1
;
...
...
@@ -1491,9 +1490,19 @@ todo_wine
hr
=
MFCreateSystemTimeSource
(
&
time_source
);
ok
(
hr
==
S_OK
,
"Failed to create time source, hr %#x.
\n
"
,
hr
);
hr
=
IMFPresentationTimeSource_GetClockCharacteristics
(
time_source
,
&
value
);
ok
(
hr
==
S_OK
,
"Failed to get time source flags, hr %#x.
\n
"
,
hr
);
ok
(
value
==
(
MFCLOCK_CHARACTERISTICS_FLAG_FREQUENCY_10MHZ
|
MFCLOCK_CHARACTERISTICS_FLAG_IS_SYSTEM_CLOCK
),
"Unexpected clock flags %#x.
\n
"
,
value
);
hr
=
IMFPresentationClock_SetTimeSource
(
clock
,
time_source
);
ok
(
hr
==
S_OK
,
"Failed to set time source, hr %#x.
\n
"
,
hr
);
hr
=
IMFPresentationClock_GetClockCharacteristics
(
clock
,
&
value
);
ok
(
hr
==
S_OK
,
"Failed to get clock flags, hr %#x.
\n
"
,
hr
);
ok
(
value
==
(
MFCLOCK_CHARACTERISTICS_FLAG_FREQUENCY_10MHZ
|
MFCLOCK_CHARACTERISTICS_FLAG_IS_SYSTEM_CLOCK
),
"Unexpected clock flags %#x.
\n
"
,
value
);
/* State changes. */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
clock_state_change
);
++
i
)
{
...
...
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