Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6408aa3a
Commit
6408aa3a
authored
Oct 09, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/evr: Implement GetMediaTypeCount().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c1371f35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
evr.c
dlls/mf/evr.c
+7
-2
mf.c
dlls/mf/tests/mf.c
+9
-0
No files found.
dlls/mf/evr.c
View file @
6408aa3a
...
...
@@ -372,9 +372,14 @@ static HRESULT WINAPI video_stream_typehandler_IsMediaTypeSupported(IMFMediaType
static
HRESULT
WINAPI
video_stream_typehandler_GetMediaTypeCount
(
IMFMediaTypeHandler
*
iface
,
DWORD
*
count
)
{
FIXM
E
(
"%p, %p.
\n
"
,
iface
,
count
);
TRAC
E
(
"%p, %p.
\n
"
,
iface
,
count
);
return
E_NOTIMPL
;
if
(
!
count
)
return
E_POINTER
;
*
count
=
0
;
return
S_OK
;
}
static
HRESULT
WINAPI
video_stream_typehandler_GetMediaTypeByIndex
(
IMFMediaTypeHandler
*
iface
,
DWORD
index
,
...
...
dlls/mf/tests/mf.c
View file @
6408aa3a
...
...
@@ -3296,6 +3296,15 @@ static void test_evr(void)
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
IsEqualGUID
(
&
guid
,
&
MFMediaType_Video
),
"Unexpected type %s.
\n
"
,
wine_dbgstr_guid
(
&
guid
));
/* Supported types are not advertised. */
hr
=
IMFMediaTypeHandler_GetMediaTypeCount
(
type_handler
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#x.
\n
"
,
hr
);
count
=
1
;
hr
=
IMFMediaTypeHandler_GetMediaTypeCount
(
type_handler
,
&
count
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
count
,
"Unexpected count %u.
\n
"
,
count
);
IMFMediaTypeHandler_Release
(
type_handler
);
/* Stream uses an allocator. */
...
...
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