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
6019f3c1
Commit
6019f3c1
authored
Oct 05, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Implement MFCreateVideoRenderer().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
93de829b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
1 deletion
+34
-1
evr.c
dlls/mf/evr.c
+28
-0
mf.spec
dlls/mf/mf.spec
+1
-1
mf.c
dlls/mf/tests/mf.c
+4
-0
evr.idl
include/evr.idl
+1
-0
No files found.
dlls/mf/evr.c
View file @
6019f3c1
...
...
@@ -1388,3 +1388,31 @@ HRESULT WINAPI MFCreateVideoRendererActivate(HWND hwnd, IMFActivate **activate)
return
hr
;
}
/***********************************************************************
* MFCreateVideoRenderer (mf.@)
*/
HRESULT
WINAPI
MFCreateVideoRenderer
(
REFIID
riid
,
void
**
renderer
)
{
IMFAttributes
*
attributes
;
IUnknown
*
obj
;
HRESULT
hr
;
TRACE
(
"%s, %p.
\n
"
,
debugstr_guid
(
riid
),
renderer
);
*
renderer
=
NULL
;
if
(
FAILED
(
hr
=
MFCreateAttributes
(
&
attributes
,
0
)))
return
hr
;
hr
=
evr_create_object
(
attributes
,
NULL
,
&
obj
);
IMFAttributes_Release
(
attributes
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IUnknown_QueryInterface
(
obj
,
riid
,
renderer
);
IUnknown_Release
(
obj
);
}
return
hr
;
}
dlls/mf/mf.spec
View file @
6019f3c1
...
...
@@ -66,7 +66,7 @@
@ stub MFCreateTranscodeSinkActivate
@ stub MFCreateTranscodeTopology
@ stub MFCreateUrlmonSchemePlugin
@ st
ub MFCreateVideoRenderer
@ st
dcall MFCreateVideoRenderer(ptr ptr)
@ stdcall MFCreateVideoRendererActivate(long ptr)
@ stub MFCreateWMAEncoderActivate
@ stub MFCreateWMVEncoderActivate
...
...
dlls/mf/tests/mf.c
View file @
6019f3c1
...
...
@@ -3253,6 +3253,10 @@ static void test_evr(void)
hr
=
CoInitialize
(
NULL
);
ok
(
hr
==
S_OK
,
"Failed to initialize, hr %#x.
\n
"
,
hr
);
hr
=
MFCreateVideoRenderer
(
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IUnknown_Release
(
unk
);
hr
=
MFCreateVideoRendererActivate
(
NULL
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Unexpected hr %#x.
\n
"
,
hr
);
...
...
include/evr.idl
View file @
6019f3c1
...
...
@@ -313,5 +313,6 @@ cpp_quote("HRESULT WINAPI MFCreateVideoMixer(IUnknown *owner, REFIID riid_device
cpp_quote
(
"HRESULT WINAPI MFCreateVideoMixerAndPresenter(IUnknown *mixer_outer, IUnknown *presenter_outer, "
)
cpp_quote
(
" REFIID riid_mixer, void **mixer, REFIID riid_presenter, void **presenter);"
)
cpp_quote
(
"HRESULT WINAPI MFCreateVideoPresenter(IUnknown *owner, REFIID riid_device, REFIID riid, void **obj);"
)
cpp_quote
(
"HRESULT WINAPI MFCreateVideoRenderer(REFIID riid, void **renderer);"
)
cpp_quote
(
"HRESULT WINAPI MFCreateVideoSampleAllocator(REFIID riid, void **allocator);"
)
cpp_quote
(
"HRESULT WINAPI MFCreateVideoSampleFromSurface(IUnknown *surface, IMFSample **sample);"
)
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