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
120ca2ff
Commit
120ca2ff
authored
Aug 19, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/tests: Add a test to show that IMFVideoDisplayControl is accessible.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
b1c3bb4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
evr.c
dlls/evr/tests/evr.c
+21
-0
No files found.
dlls/evr/tests/evr.c
View file @
120ca2ff
...
...
@@ -571,6 +571,26 @@ static void test_misc_flags(void)
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
}
static
void
test_display_control
(
void
)
{
IBaseFilter
*
filter
=
create_evr
();
IMFVideoDisplayControl
*
display_control
;
HRESULT
hr
;
ULONG
ref
;
hr
=
MFGetService
((
IUnknown
*
)
filter
,
&
MR_VIDEO_RENDER_SERVICE
,
&
IID_IMFVideoDisplayControl
,
(
void
**
)
&
display_control
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFVideoDisplayControl_SetVideoWindow
(
display_control
,
0
);
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#lx.
\n
"
,
hr
);
IMFVideoDisplayControl_Release
(
display_control
);
ref
=
IBaseFilter_Release
(
filter
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
}
static
IMFMediaType
*
create_video_type
(
const
GUID
*
subtype
)
{
IMFMediaType
*
video_type
;
...
...
@@ -3243,6 +3263,7 @@ START_TEST(evr)
test_pin_info
();
test_unconnected_eos
();
test_misc_flags
();
test_display_control
();
test_default_mixer
();
test_default_mixer_type_negotiation
();
...
...
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