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
9a06379d
Commit
9a06379d
authored
Jun 27, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Added MFCreateMediaType test.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
69bb5dc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
mfplat.c
dlls/mfplat/tests/mfplat.c
+28
-0
No files found.
dlls/mfplat/tests/mfplat.c
View file @
9a06379d
...
...
@@ -191,6 +191,33 @@ static void init_functions(void)
#undef X
}
static
void
test_MFCreateMediaType
(
void
)
{
HRESULT
hr
;
IMFMediaType
*
mediatype
;
hr
=
MFStartup
(
MF_VERSION
,
MFSTARTUP_FULL
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
if
(
0
)
{
/* Crash on Windows Vista/7 */
hr
=
MFCreateMediaType
(
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x
\n
"
,
hr
);
}
hr
=
MFCreateMediaType
(
&
mediatype
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IMFMediaType_SetGUID
(
mediatype
,
&
MF_MT_MAJOR_TYPE
,
&
MFMediaType_Video
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IMFMediaType_Release
(
mediatype
);
MFShutdown
();
}
START_TEST
(
mfplat
)
{
CoInitialize
(
NULL
);
...
...
@@ -199,6 +226,7 @@ START_TEST(mfplat)
test_register
();
test_source_resolver
();
test_MFCreateMediaType
();
CoUninitialize
();
}
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