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
f1fd0b46
Commit
f1fd0b46
authored
Apr 20, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Add some tests for EVR sink services.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3ebc7158
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
mf.c
dlls/mf/tests/mf.c
+8
-10
No files found.
dlls/mf/tests/mf.c
View file @
f1fd0b46
...
...
@@ -44,6 +44,8 @@ DEFINE_GUID(MFVideoFormat_ABGR32, 0x00000020, 0x0000, 0x0010, 0x80, 0x00, 0x00,
#include "mmdeviceapi.h"
#include "audioclient.h"
#include "evr.h"
#include "d3d9.h"
#include "evr9.h"
#include "wine/test.h"
...
...
@@ -4223,7 +4225,6 @@ static void test_evr(void)
IMFActivate
*
activate
;
HWND
window
,
window2
;
LONG
sample_count
;
IMFGetService
*
gs
;
IMFSample
*
sample
;
IUnknown
*
unk
;
UINT64
window3
;
...
...
@@ -4262,6 +4263,12 @@ static void test_evr(void)
check_interface
(
sink
,
&
IID_IMFClockStateSink
,
TRUE
);
check_interface
(
sink
,
&
IID_IMFGetService
,
TRUE
);
check_interface
(
sink
,
&
IID_IMFQualityAdvise
,
TRUE
);
check_service_interface
(
sink
,
&
MR_VIDEO_MIXER_SERVICE
,
&
IID_IMFVideoProcessor
,
TRUE
);
check_service_interface
(
sink
,
&
MR_VIDEO_MIXER_SERVICE
,
&
IID_IMFVideoMixerBitmap
,
TRUE
);
check_service_interface
(
sink
,
&
MR_VIDEO_MIXER_SERVICE
,
&
IID_IMFVideoMixerControl
,
TRUE
);
check_service_interface
(
sink
,
&
MR_VIDEO_MIXER_SERVICE
,
&
IID_IMFVideoMixerControl2
,
TRUE
);
check_service_interface
(
sink
,
&
MR_VIDEO_RENDER_SERVICE
,
&
IID_IMFVideoDisplayControl
,
TRUE
);
check_service_interface
(
sink
,
&
MR_VIDEO_RENDER_SERVICE
,
&
IID_IMFVideoPositionMapper
,
TRUE
);
hr
=
MFGetService
((
IUnknown
*
)
sink
,
&
MR_VIDEO_RENDER_SERVICE
,
&
IID_IMFVideoDisplayControl
,
(
void
**
)
&
display_control
);
...
...
@@ -4444,15 +4451,6 @@ static void test_evr(void)
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
flags
==
(
MEDIASINK_CAN_PREROLL
|
MEDIASINK_CLOCK_REQUIRED
),
"Unexpected flags %#x.
\n
"
,
flags
);
hr
=
IMFMediaSink_QueryInterface
(
sink
,
&
IID_IMFGetService
,
(
void
**
)
&
gs
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFGetService_GetService
(
gs
,
&
MR_VIDEO_MIXER_SERVICE
,
&
IID_IMFVideoMixerControl
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IUnknown_Release
(
unk
);
IMFGetService_Release
(
gs
);
hr
=
IMFActivate_ShutdownObject
(
activate
);
ok
(
hr
==
S_OK
,
"Failed to shut down, hr %#x.
\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