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
4c9517ee
Commit
4c9517ee
authored
Apr 18, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/tests: Add a test for stream descriptor major type behavior.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3e8b14ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
mfplat.c
dlls/mfplat/tests/mfplat.c
+19
-3
No files found.
dlls/mfplat/tests/mfplat.c
View file @
4c9517ee
...
...
@@ -216,9 +216,13 @@ static void test_source_resolver(void)
IMFAttributes
*
attributes
;
IMFMediaSource
*
mediasource
;
IMFPresentationDescriptor
*
descriptor
;
IMFMediaTypeHandler
*
handler
;
MF_OBJECT_TYPE
obj_type
;
IMFStreamDescriptor
*
sd
;
HRESULT
hr
;
WCHAR
*
filename
;
BOOL
selected
;
GUID
guid
;
static
const
WCHAR
file_type
[]
=
{
'v'
,
'i'
,
'd'
,
'e'
,
'o'
,
'/'
,
'm'
,
'p'
,
'4'
,
0
};
...
...
@@ -297,11 +301,23 @@ static void test_source_resolver(void)
ok
(
mediasource
!=
NULL
,
"got %p
\n
"
,
mediasource
);
ok
(
obj_type
==
MF_OBJECT_MEDIASOURCE
,
"got %d
\n
"
,
obj_type
);
hr
=
IMFMediaSource_CreatePresentationDescriptor
(
mediasource
,
&
descriptor
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IMFMediaSource_CreatePresentationDescriptor
(
mediasource
,
&
descriptor
);
ok
(
hr
==
S_OK
,
"Failed to get presentation descriptor, hr %#x.
\n
"
,
hr
);
ok
(
descriptor
!=
NULL
,
"got %p
\n
"
,
descriptor
);
hr
=
IMFPresentationDescriptor_GetStreamDescriptorByIndex
(
descriptor
,
0
,
&
selected
,
&
sd
);
ok
(
hr
==
S_OK
,
"Failed to get stream descriptor, hr %#x.
\n
"
,
hr
);
hr
=
IMFStreamDescriptor_GetMediaTypeHandler
(
sd
,
&
handler
);
ok
(
hr
==
S_OK
,
"Failed to get type handler, hr %#x.
\n
"
,
hr
);
hr
=
IMFMediaTypeHandler_GetMajorType
(
handler
,
&
guid
);
todo_wine
ok
(
hr
==
S_OK
,
"Failed to get stream major type, hr %#x.
\n
"
,
hr
);
IMFMediaTypeHandler_Release
(
handler
);
IMFStreamDescriptor_Release
(
sd
);
IMFPresentationDescriptor_Release
(
descriptor
);
IMFMediaSource_Release
(
mediasource
);
IMFByteStream_Release
(
bytestream
);
...
...
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