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
71397e6e
Commit
71397e6e
authored
May 07, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf: Implement CloneFrom() for nodes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
45d084d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
7 deletions
+46
-7
topology.c
dlls/mf/topology.c
+46
-7
No files found.
dlls/mf/topology.c
View file @
71397e6e
...
...
@@ -1078,18 +1078,15 @@ static HRESULT WINAPI topology_node_CopyAllItems(IMFTopologyNode *iface, IMFAttr
return
IMFAttributes_CopyAllItems
(
node
->
attributes
,
dest
);
}
static
HRESULT
WINAPI
topology_node_SetObject
(
IMFTopologyNode
*
ifac
e
,
IUnknown
*
object
)
static
HRESULT
topology_node_set_object
(
struct
topology_node
*
nod
e
,
IUnknown
*
object
)
{
static
const
GUID
*
iids
[
3
]
=
{
&
IID_IPersist
,
&
IID_IPersistStorage
,
&
IID_IPersistPropertyBag
};
struct
topology_node
*
node
=
impl_from_IMFTopologyNode
(
iface
);
IPersist
*
persist
=
NULL
;
BOOL
has_object_id
;
GUID
object_id
;
unsigned
int
i
;
HRESULT
hr
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
object
);
has_object_id
=
IMFAttributes_GetGUID
(
node
->
attributes
,
&
MF_TOPONODE_TRANSFORM_OBJECTID
,
&
object_id
)
==
S_OK
;
if
(
object
&&
!
has_object_id
)
...
...
@@ -1130,6 +1127,15 @@ static HRESULT WINAPI topology_node_SetObject(IMFTopologyNode *iface, IUnknown *
return
S_OK
;
}
static
HRESULT
WINAPI
topology_node_SetObject
(
IMFTopologyNode
*
iface
,
IUnknown
*
object
)
{
struct
topology_node
*
node
=
impl_from_IMFTopologyNode
(
iface
);
TRACE
(
"%p, %p.
\n
"
,
iface
,
object
);
return
topology_node_set_object
(
node
,
object
);
}
static
HRESULT
WINAPI
topology_node_GetObject
(
IMFTopologyNode
*
iface
,
IUnknown
**
object
)
{
struct
topology_node
*
node
=
impl_from_IMFTopologyNode
(
iface
);
...
...
@@ -1367,11 +1373,44 @@ static HRESULT WINAPI topology_node_GetInputPrefType(IMFTopologyNode *iface, DWO
return
hr
;
}
static
HRESULT
WINAPI
topology_node_CloneFrom
(
IMFTopologyNode
*
iface
,
IMFTopologyNode
*
node
)
static
HRESULT
WINAPI
topology_node_CloneFrom
(
IMFTopologyNode
*
iface
,
IMFTopologyNode
*
src_
node
)
{
FIXME
(
"(%p)->(%p)
\n
"
,
iface
,
node
);
struct
topology_node
*
node
=
impl_from_IMFTopologyNode
(
iface
);
MF_TOPOLOGY_TYPE
node_type
;
IUnknown
*
object
;
TOPOID
topoid
;
HRESULT
hr
;
return
E_NOTIMPL
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
src_node
);
if
(
FAILED
(
hr
=
IMFTopologyNode_GetNodeType
(
src_node
,
&
node_type
)))
return
hr
;
if
(
node
->
node_type
!=
node_type
)
return
MF_E_INVALIDREQUEST
;
if
(
FAILED
(
hr
=
IMFTopologyNode_GetTopoNodeID
(
src_node
,
&
topoid
)))
return
hr
;
object
=
NULL
;
IMFTopologyNode_GetObject
(
src_node
,
&
object
);
EnterCriticalSection
(
&
node
->
cs
);
hr
=
IMFTopologyNode_CopyAllItems
(
src_node
,
node
->
attributes
);
if
(
SUCCEEDED
(
hr
))
hr
=
topology_node_set_object
(
node
,
object
);
if
(
SUCCEEDED
(
hr
))
node
->
id
=
topoid
;
LeaveCriticalSection
(
&
node
->
cs
);
if
(
object
)
IUnknown_Release
(
object
);
return
hr
;
}
static
const
IMFTopologyNodeVtbl
topologynodevtbl
=
...
...
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