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
fef1d403
Commit
fef1d403
authored
Nov 04, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Add MFCreateVideoRendererActivate().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c1a62e01
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletion
+38
-1
main.c
dlls/mf/main.c
+24
-0
mf.spec
dlls/mf/mf.spec
+1
-1
mf.c
dlls/mf/tests/mf.c
+12
-0
mfidl.idl
include/mfidl.idl
+1
-0
No files found.
dlls/mf/main.c
View file @
fef1d403
...
...
@@ -1144,3 +1144,27 @@ HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sou
return
S_OK
;
}
static
HRESULT
evr_create_object
(
IMFAttributes
*
attributes
,
void
*
user_context
,
IUnknown
**
obj
)
{
FIXME
(
"%p, %p, %p.
\n
"
,
attributes
,
user_context
,
obj
);
return
E_NOTIMPL
;
}
static
void
evr_free_private
(
void
*
user_context
)
{
}
static
const
struct
activate_funcs
evr_activate_funcs
=
{
evr_create_object
,
evr_free_private
,
};
HRESULT
WINAPI
MFCreateVideoRendererActivate
(
HWND
hwnd
,
IMFActivate
**
activate
)
{
TRACE
(
"%p, %p.
\n
"
,
hwnd
,
activate
);
return
create_activation_object
(
hwnd
,
&
evr_activate_funcs
,
activate
);
}
dlls/mf/mf.spec
View file @
fef1d403
...
...
@@ -67,7 +67,7 @@
@ stub MFCreateTranscodeTopology
@ stub MFCreateUrlmonSchemePlugin
@ stub MFCreateVideoRenderer
@ st
ub MFCreateVideoRendererActivate
@ st
dcall MFCreateVideoRendererActivate(long ptr)
@ stub MFCreateWMAEncoderActivate
@ stub MFCreateWMVEncoderActivate
@ stdcall MFEnumDeviceSources(ptr ptr ptr)
...
...
dlls/mf/tests/mf.c
View file @
fef1d403
...
...
@@ -2584,6 +2584,17 @@ if (SUCCEEDED(hr))
CoUninitialize
();
}
static
void
test_evr
(
void
)
{
IMFActivate
*
activate
;
HRESULT
hr
;
hr
=
MFCreateVideoRendererActivate
(
NULL
,
&
activate
);
ok
(
hr
==
S_OK
,
"Failed to create activate object, hr %#x.
\n
"
,
hr
);
IMFActivate_Release
(
activate
);
}
START_TEST
(
mf
)
{
test_topology
();
...
...
@@ -2597,4 +2608,5 @@ START_TEST(mf)
test_video_processor
();
test_quality_manager
();
test_sar
();
test_evr
();
}
include/mfidl.idl
View file @
fef1d403
...
...
@@ -586,6 +586,7 @@ cpp_quote("HRESULT WINAPI MFCreateSystemTimeSource(IMFPresentationTimeSource **t
cpp_quote
(
"HRESULT WINAPI MFCreateTopology(IMFTopology **topology);"
)
cpp_quote
(
"HRESULT WINAPI MFCreateTopologyNode(MF_TOPOLOGY_TYPE node_type, IMFTopologyNode **node);"
)
cpp_quote
(
"HRESULT WINAPI MFCreateTopoLoader(IMFTopoLoader **loader);"
)
cpp_quote
(
"HRESULT WINAPI MFCreateVideoRendererActivate(HWND hwnd, IMFActivate **activate);"
)
cpp_quote
(
"HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sources, UINT32 *count);"
)
cpp_quote
(
"HRESULT WINAPI MFGetSupportedMimeTypes(PROPVARIANT *array);"
)
cpp_quote
(
"HRESULT WINAPI MFGetService(IUnknown *object, REFGUID service, REFIID iid, void **obj);"
)
...
...
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