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
393ea6c6
Commit
393ea6c6
authored
Oct 27, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/tests: Skip tests if default presenter can't be created.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
059a0c0b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
evr.c
dlls/evr/tests/evr.c
+12
-3
No files found.
dlls/evr/tests/evr.c
View file @
393ea6c6
...
@@ -1246,9 +1246,7 @@ static void test_default_presenter(void)
...
@@ -1246,9 +1246,7 @@ static void test_default_presenter(void)
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
MFCreateVideoPresenter
(
NULL
,
&
IID_IDirect3DDevice9
,
&
IID_IMFVideoPresenter
,
(
void
**
)
&
presenter
);
hr
=
MFCreateVideoPresenter
(
NULL
,
&
IID_IDirect3DDevice9
,
&
IID_IMFVideoPresenter
,
(
void
**
)
&
presenter
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
E_FAIL
)
/* WinXP */
,
"Failed to create default presenter, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to create default presenter, hr %#x.
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
;
check_interface
(
presenter
,
&
IID_IQualProp
,
TRUE
);
check_interface
(
presenter
,
&
IID_IQualProp
,
TRUE
);
check_interface
(
presenter
,
&
IID_IMFVideoPositionMapper
,
TRUE
);
check_interface
(
presenter
,
&
IID_IMFVideoPositionMapper
,
TRUE
);
...
@@ -2820,8 +2818,19 @@ static void test_MFIsFormatYUV(void)
...
@@ -2820,8 +2818,19 @@ static void test_MFIsFormatYUV(void)
START_TEST
(
evr
)
START_TEST
(
evr
)
{
{
IMFVideoPresenter
*
presenter
;
HRESULT
hr
;
CoInitialize
(
NULL
);
CoInitialize
(
NULL
);
if
(
FAILED
(
hr
=
MFCreateVideoPresenter
(
NULL
,
&
IID_IDirect3DDevice9
,
&
IID_IMFVideoPresenter
,
(
void
**
)
&
presenter
)))
{
win_skip
(
"Failed to create default presenter, hr %#x. Skipping tests.
\n
"
,
hr
);
CoUninitialize
();
return
;
}
IMFVideoPresenter_Release
(
presenter
);
test_aggregation
();
test_aggregation
();
test_interfaces
();
test_interfaces
();
test_enum_pins
();
test_enum_pins
();
...
...
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