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
8511670b
Commit
8511670b
authored
Apr 08, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Add some more tests for IsCompressedFormat().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
800103d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
mfplat.c
dlls/mfplat/tests/mfplat.c
+14
-0
No files found.
dlls/mfplat/tests/mfplat.c
View file @
8511670b
...
@@ -993,14 +993,28 @@ if(0)
...
@@ -993,14 +993,28 @@ if(0)
ok
(
hr
==
S_OK
,
"Failed to get media type property, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to get media type property, hr %#x.
\n
"
,
hr
);
ok
(
compressed
,
"Unexpected value %d.
\n
"
,
compressed
);
ok
(
compressed
,
"Unexpected value %d.
\n
"
,
compressed
);
hr
=
IMFMediaType_SetUINT32
(
mediatype
,
&
MF_MT_COMPRESSED
,
0
);
ok
(
hr
==
S_OK
,
"Failed to set attribute, hr %#x.
\n
"
,
hr
);
compressed
=
FALSE
;
hr
=
IMFMediaType_IsCompressedFormat
(
mediatype
,
&
compressed
);
ok
(
hr
==
S_OK
,
"Failed to get media type property, hr %#x.
\n
"
,
hr
);
ok
(
compressed
,
"Unexpected value %d.
\n
"
,
compressed
);
hr
=
IMFMediaType_SetUINT32
(
mediatype
,
&
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
);
hr
=
IMFMediaType_SetUINT32
(
mediatype
,
&
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
);
ok
(
hr
==
S_OK
,
"Failed to set attribute, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to set attribute, hr %#x.
\n
"
,
hr
);
hr
=
IMFMediaType_SetUINT32
(
mediatype
,
&
MF_MT_COMPRESSED
,
1
);
ok
(
hr
==
S_OK
,
"Failed to set attribute, hr %#x.
\n
"
,
hr
);
compressed
=
TRUE
;
compressed
=
TRUE
;
hr
=
IMFMediaType_IsCompressedFormat
(
mediatype
,
&
compressed
);
hr
=
IMFMediaType_IsCompressedFormat
(
mediatype
,
&
compressed
);
ok
(
hr
==
S_OK
,
"Failed to get media type property, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to get media type property, hr %#x.
\n
"
,
hr
);
ok
(
!
compressed
,
"Unexpected value %d.
\n
"
,
compressed
);
ok
(
!
compressed
,
"Unexpected value %d.
\n
"
,
compressed
);
hr
=
IMFMediaType_DeleteItem
(
mediatype
,
&
MF_MT_COMPRESSED
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFMediaType_SetGUID
(
mediatype
,
&
MF_MT_MAJOR_TYPE
,
&
MFMediaType_Video
);
hr
=
IMFMediaType_SetGUID
(
mediatype
,
&
MF_MT_MAJOR_TYPE
,
&
MFMediaType_Video
);
ok
(
hr
==
S_OK
,
"Failed to set GUID value, hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Failed to set GUID value, 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