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
246382e8
Commit
246382e8
authored
Mar 03, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Implement transform activation object.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7d8640a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
5 deletions
+54
-5
main.c
dlls/mfplat/main.c
+54
-5
No files found.
dlls/mfplat/main.c
View file @
246382e8
...
...
@@ -109,6 +109,7 @@ struct transform_activate
struct
attributes
attributes
;
IMFActivate
IMFActivate_iface
;
IClassFactory
*
factory
;
IMFTransform
*
transform
;
};
struct
system_clock
...
...
@@ -198,6 +199,8 @@ static ULONG WINAPI transform_activate_Release(IMFActivate *iface)
clear_attributes_object
(
&
activate
->
attributes
);
if
(
activate
->
factory
)
IClassFactory_Release
(
activate
->
factory
);
if
(
activate
->
transform
)
IMFTransform_Release
(
activate
->
transform
);
heap_free
(
activate
);
}
...
...
@@ -482,21 +485,67 @@ static HRESULT WINAPI transform_activate_CopyAllItems(IMFActivate *iface, IMFAtt
static
HRESULT
WINAPI
transform_activate_ActivateObject
(
IMFActivate
*
iface
,
REFIID
riid
,
void
**
obj
)
{
FIXME
(
"%p, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
obj
);
struct
transform_activate
*
activate
=
impl_from_IMFActivate
(
iface
);
CLSID
clsid
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"%p, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
riid
),
obj
);
EnterCriticalSection
(
&
activate
->
attributes
.
cs
);
if
(
!
activate
->
transform
)
{
if
(
activate
->
factory
)
{
if
(
FAILED
(
hr
=
IClassFactory_CreateInstance
(
activate
->
factory
,
NULL
,
&
IID_IMFTransform
,
(
void
**
)
&
activate
->
transform
)))
{
hr
=
MF_E_INVALIDREQUEST
;
}
}
else
{
if
(
SUCCEEDED
(
hr
=
attributes_GetGUID
(
&
activate
->
attributes
,
&
MFT_TRANSFORM_CLSID_Attribute
,
&
clsid
)))
{
if
(
FAILED
(
hr
=
CoCreateInstance
(
&
clsid
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMFTransform
,
(
void
**
)
&
activate
->
transform
)))
{
hr
=
MF_E_INVALIDREQUEST
;
}
}
}
}
if
(
activate
->
transform
)
hr
=
IMFTransform_QueryInterface
(
activate
->
transform
,
riid
,
obj
);
LeaveCriticalSection
(
&
activate
->
attributes
.
cs
);
return
hr
;
}
static
HRESULT
WINAPI
transform_activate_ShutdownObject
(
IMFActivate
*
iface
)
{
FIXME
(
"%p.
\n
"
,
iface
);
struct
transform_activate
*
activate
=
impl_from_IMFActivate
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p.
\n
"
,
iface
);
EnterCriticalSection
(
&
activate
->
attributes
.
cs
);
if
(
activate
->
transform
)
{
IMFTransform_Release
(
activate
->
transform
);
activate
->
transform
=
NULL
;
}
LeaveCriticalSection
(
&
activate
->
attributes
.
cs
);
return
S_OK
;
}
static
HRESULT
WINAPI
transform_activate_DetachObject
(
IMFActivate
*
iface
)
{
FIXM
E
(
"%p.
\n
"
,
iface
);
TRAC
E
(
"%p.
\n
"
,
iface
);
return
E_NOTIMPL
;
}
...
...
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