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
21bbd34d
Commit
21bbd34d
authored
Jan 18, 2024
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Fully cleanup when skipping tests.
parent
7aa982f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
mf.c
dlls/mf/tests/mf.c
+17
-15
No files found.
dlls/mf/tests/mf.c
View file @
21bbd34d
...
...
@@ -3733,6 +3733,23 @@ static void test_topology_loader_evr(void)
hr
=
CoInitialize
(
NULL
);
ok
(
hr
==
S_OK
,
"Failed to initialize, hr %#lx.
\n
"
,
hr
);
/* EVR sink node. */
window
=
create_window
();
hr
=
MFCreateVideoRendererActivate
(
window
,
&
activate
);
ok
(
hr
==
S_OK
,
"Failed to create activate object, hr %#lx.
\n
"
,
hr
);
hr
=
IMFActivate_ActivateObject
(
activate
,
&
IID_IMFMediaSink
,
(
void
**
)
&
sink
);
if
(
FAILED
(
hr
))
{
skip
(
"Failed to create an EVR sink, skipping tests.
\n
"
);
DestroyWindow
(
window
);
IMFActivate_Release
(
activate
);
CoUninitialize
();
return
;
}
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
MFCreateTopoLoader
(
&
loader
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
...
@@ -3749,21 +3766,6 @@ static void test_topology_loader_evr(void)
IMFPresentationDescriptor_Release
(
pd
);
IMFStreamDescriptor_Release
(
sd
);
/* EVR sink node. */
window
=
create_window
();
hr
=
MFCreateVideoRendererActivate
(
window
,
&
activate
);
ok
(
hr
==
S_OK
,
"Failed to create activate object, hr %#lx.
\n
"
,
hr
);
hr
=
IMFActivate_ActivateObject
(
activate
,
&
IID_IMFMediaSink
,
(
void
**
)
&
sink
);
if
(
FAILED
(
hr
))
{
skip
(
"Failed to create an EVR sink, skipping tests.
\n
"
);
DestroyWindow
(
window
);
IMFActivate_Release
(
activate
);
return
;
}
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFMediaSink_GetStreamSinkById
(
sink
,
0
,
&
stream_sink
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
...
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