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
445d2d96
Commit
445d2d96
authored
Oct 19, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Add more tests for stream start time.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
877f8aa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
filtergraph.c
dlls/quartz/tests/filtergraph.c
+39
-0
No files found.
dlls/quartz/tests/filtergraph.c
View file @
445d2d96
...
...
@@ -3114,6 +3114,16 @@ todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Paused
);
hr
=
IMediaFilter_Run
(
filter
,
0xdeadf00d
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Running
);
ok
(
source
.
start_time
==
0xdeadf00d
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
source
.
start_time
));
ok
(
sink
.
start_time
==
0xdeadf00d
,
"Got time %s.
\n
"
,
wine_dbgstr_longlong
(
sink
.
start_time
));
hr
=
IMediaFilter_Pause
(
filter
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Paused
);
hr
=
IMediaFilter_Stop
(
filter
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Stopped
);
...
...
@@ -3130,6 +3140,35 @@ todo_wine
ok
(
sink
.
start_time
==
source
.
start_time
,
"Expected time %s, got %s.
\n
"
,
wine_dbgstr_longlong
(
source
.
start_time
),
wine_dbgstr_longlong
(
sink
.
start_time
));
Sleep
(
600
);
hr
=
IMediaFilter_Pause
(
filter
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Paused
);
hr
=
IMediaFilter_Run
(
filter
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Running
);
ok
(
source
.
start_time
>=
start_time
&&
source
.
start_time
<
start_time
+
500
*
10000
,
"Expected time near %s, got %s.
\n
"
,
wine_dbgstr_longlong
(
start_time
),
wine_dbgstr_longlong
(
source
.
start_time
));
ok
(
sink
.
start_time
==
source
.
start_time
,
"Expected time %s, got %s.
\n
"
,
wine_dbgstr_longlong
(
source
.
start_time
),
wine_dbgstr_longlong
(
sink
.
start_time
));
hr
=
IMediaFilter_Pause
(
filter
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Paused
);
Sleep
(
600
);
start_time
+=
600
*
10000
;
hr
=
IMediaFilter_Run
(
filter
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Running
);
ok
(
source
.
start_time
>=
start_time
&&
source
.
start_time
<
start_time
+
500
*
10000
,
"Expected time near %s, got %s.
\n
"
,
wine_dbgstr_longlong
(
start_time
),
wine_dbgstr_longlong
(
source
.
start_time
));
ok
(
sink
.
start_time
==
source
.
start_time
,
"Expected time %s, got %s.
\n
"
,
wine_dbgstr_longlong
(
source
.
start_time
),
wine_dbgstr_longlong
(
sink
.
start_time
));
hr
=
IMediaFilter_Stop
(
filter
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
check_filter_state
(
graph
,
State_Stopped
);
...
...
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