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
ac2038ef
Commit
ac2038ef
authored
May 20, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Return properties for system time source.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9f89464e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
main.c
dlls/mfplat/main.c
+10
-2
mfplat.c
dlls/mfplat/tests/mfplat.c
+17
-0
mfidl.idl
include/mfidl.idl
+6
-0
No files found.
dlls/mfplat/main.c
View file @
ac2038ef
...
...
@@ -6633,9 +6633,17 @@ static HRESULT WINAPI system_time_source_GetState(IMFPresentationTimeSource *ifa
static
HRESULT
WINAPI
system_time_source_GetProperties
(
IMFPresentationTimeSource
*
iface
,
MFCLOCK_PROPERTIES
*
props
)
{
FIXM
E
(
"%p, %p.
\n
"
,
iface
,
props
);
TRAC
E
(
"%p, %p.
\n
"
,
iface
,
props
);
return
E_NOTIMPL
;
if
(
!
props
)
return
E_POINTER
;
memset
(
props
,
0
,
sizeof
(
*
props
));
props
->
qwClockFrequency
=
MFCLOCK_FREQUENCY_HNS
;
props
->
dwClockTolerance
=
MFCLOCK_TOLERANCE_UNKNOWN
;
props
->
dwClockJitter
=
1
;
return
S_OK
;
}
static
HRESULT
WINAPI
system_time_source_GetUnderlyingClock
(
IMFPresentationTimeSource
*
iface
,
IMFClock
**
clock
)
...
...
dlls/mfplat/tests/mfplat.c
View file @
ac2038ef
...
...
@@ -2542,6 +2542,7 @@ static void test_system_time_source(void)
};
IMFPresentationTimeSource
*
time_source
;
IMFClockStateSink
*
statesink
;
MFCLOCK_PROPERTIES
props
;
MFCLOCK_STATE
state
;
unsigned
int
i
;
DWORD
value
;
...
...
@@ -2595,6 +2596,22 @@ static void test_system_time_source(void)
IMFClockStateSink_Release
(
statesink
);
/* Properties. */
hr
=
IMFPresentationTimeSource_GetProperties
(
time_source
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFPresentationTimeSource_GetProperties
(
time_source
,
&
props
);
ok
(
hr
==
S_OK
,
"Failed to get clock properties, hr %#x.
\n
"
,
hr
);
ok
(
props
.
qwCorrelationRate
==
0
,
"Unexpected correlation rate %s.
\n
"
,
wine_dbgstr_longlong
(
props
.
qwCorrelationRate
));
ok
(
IsEqualGUID
(
&
props
.
guidClockId
,
&
GUID_NULL
),
"Unexpected clock id %s.
\n
"
,
wine_dbgstr_guid
(
&
props
.
guidClockId
));
ok
(
props
.
dwClockFlags
==
0
,
"Unexpected flags %#x.
\n
"
,
props
.
dwClockFlags
);
ok
(
props
.
qwClockFrequency
==
MFCLOCK_FREQUENCY_HNS
,
"Unexpected frequency %s.
\n
"
,
wine_dbgstr_longlong
(
props
.
qwClockFrequency
));
ok
(
props
.
dwClockTolerance
==
MFCLOCK_TOLERANCE_UNKNOWN
,
"Unexpected tolerance %u.
\n
"
,
props
.
dwClockTolerance
);
ok
(
props
.
dwClockJitter
==
1
,
"Unexpected jitter %u.
\n
"
,
props
.
dwClockJitter
);
IMFPresentationTimeSource_Release
(
time_source
);
}
...
...
include/mfidl.idl
View file @
ac2038ef
...
...
@@ -47,6 +47,12 @@ typedef enum MF_OBJECT_TYPE
MF_OBJECT_INVALID
}
MF_OBJECT_TYPE
;
cpp_quote
(
"#define MFCLOCK_FREQUENCY_HNS 10000000"
)
cpp_quote
(
"#define MFCLOCK_TOLERANCE_UNKNOWN 50000"
)
cpp_quote
(
"#define MFCLOCK_JITTER_ISR 1000"
)
cpp_quote
(
"#define MFCLOCK_JITTER_DPC 4000"
)
cpp_quote
(
"#define MFCLOCK_JITTER_PASSIVE 10000"
)
typedef
struct
_MFCLOCK_PROPERTIES
{
unsigned
__int64
qwCorrelationRate
;
...
...
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