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
f5ace38a
Commit
f5ace38a
authored
Mar 11, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Do not touch clock state when setting rate.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
02613046
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
session.c
dlls/mf/session.c
+2
-1
mf.c
dlls/mf/tests/mf.c
+4
-0
No files found.
dlls/mf/session.c
View file @
f5ace38a
...
...
@@ -2978,7 +2978,8 @@ static HRESULT clock_change_state(struct presentation_clock *clock, enum clock_c
return
hr
;
old_state
=
clock
->
state
;
clock
->
state
=
states
[
command
];
if
(
command
!=
CLOCK_CMD_SET_RATE
)
clock
->
state
=
states
[
command
];
/* Dump all pending timer requests immediately on start; otherwise try to cancel scheduled items when
transitioning from running state. */
...
...
dlls/mf/tests/mf.c
View file @
f5ace38a
...
...
@@ -1797,6 +1797,10 @@ static void test_presentation_clock(void)
hr
=
IMFRateControl_SetRate
(
rate_control
,
TRUE
,
-
1
.
0
f
);
ok
(
hr
==
MF_E_THINNING_UNSUPPORTED
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFPresentationClock_GetState
(
clock
,
0
,
&
state
);
ok
(
hr
==
S_OK
,
"Failed to get clock state, hr %#x.
\n
"
,
hr
);
ok
(
state
==
MFCLOCK_STATE_RUNNING
,
"Unexpected state %d.
\n
"
,
state
);
hr
=
IMFRateControl_GetRate
(
rate_control
,
&
thin
,
&
rate
);
ok
(
hr
==
S_OK
,
"Failed to get clock rate, hr %#x.
\n
"
,
hr
);
ok
(
rate
==
0
.
5
f
,
"Unexpected rate.
\n
"
);
...
...
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