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
148f996c
Commit
148f996c
authored
Nov 24, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Dec 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplay/tests: Add MF_SD_LANGUAGE and MF_SD_STREAM_NAME value tests.
parent
05c99cd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
Makefile.in
dlls/mfplay/tests/Makefile.in
+1
-1
mfplay.c
dlls/mfplay/tests/mfplay.c
+13
-1
test.mp4
dlls/mfplay/tests/test.mp4
+0
-0
No files found.
dlls/mfplay/tests/Makefile.in
View file @
148f996c
TESTDLL
=
mfplay.dll
IMPORTS
=
mfplay user32 uuid mfuuid mfplat
IMPORTS
=
mfplay user32 uuid mfuuid mfplat
ole32
C_SRCS
=
\
mfplay.c
...
...
dlls/mfplay/tests/mfplay.c
View file @
148f996c
...
...
@@ -356,7 +356,19 @@ static void test_media_item(void)
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFPMediaItem_GetStreamAttribute
(
item
,
0
,
&
MF_SD_LANGUAGE
,
&
propvar
);
ok
(
hr
==
MF_E_ATTRIBUTENOTFOUND
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
propvar
.
vt
==
VT_LPWSTR
,
"Unexpected vt %u.
\n
"
,
propvar
.
vt
);
ok
(
!
wcscmp
(
propvar
.
pwszVal
,
L"en"
),
"Unexpected value %s.
\n
"
,
debugstr_w
(
propvar
.
pwszVal
));
PropVariantClear
(
&
propvar
);
hr
=
IMFPMediaItem_GetStreamAttribute
(
item
,
0
,
&
MF_SD_STREAM_NAME
,
&
propvar
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
MF_E_ATTRIBUTENOTFOUND
)
/* Before Win10 1607. */
,
"Unexpected hr %#lx.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
propvar
.
vt
==
VT_LPWSTR
,
"Unexpected vt %u.
\n
"
,
propvar
.
vt
);
ok
(
!
wcscmp
(
propvar
.
pwszVal
,
L"test"
),
"Unexpected value %s.
\n
"
,
debugstr_w
(
propvar
.
pwszVal
));
PropVariantClear
(
&
propvar
);
}
hr
=
IMFPMediaItem_GetPresentationAttribute
(
item
,
&
MF_PD_DURATION
,
&
propvar
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
...
...
dlls/mfplay/tests/test.mp4
View file @
148f996c
No preview for this file type
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