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
b75301b4
Commit
b75301b4
authored
Apr 12, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/topology: Copy input topology attributes on Load().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6b98933
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
mf.c
dlls/mf/tests/mf.c
+4
-0
topology.c
dlls/mf/topology.c
+2
-0
No files found.
dlls/mf/tests/mf.c
View file @
b75301b4
...
...
@@ -2109,9 +2109,13 @@ todo_wine {
IMFTopologyNode_Release
(
sink_node2
);
hr
=
IMFTopology_SetUINT32
(
full_topology
,
&
IID_IMFTopology
,
123
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFTopoLoader_Load
(
loader
,
full_topology
,
&
topology2
,
NULL
);
ok
(
hr
==
S_OK
,
"Failed to resolve topology, hr %#x.
\n
"
,
hr
);
ok
(
full_topology
!=
topology2
,
"Unexpected instance.
\n
"
);
hr
=
IMFTopology_GetUINT32
(
topology2
,
&
IID_IMFTopology
,
&
value
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IMFTopology_Release
(
topology2
);
IMFTopology_Release
(
full_topology
);
...
...
dlls/mf/topology.c
View file @
b75301b4
...
...
@@ -2567,6 +2567,8 @@ static HRESULT WINAPI topology_loader_Load(IMFTopoLoader *iface, IMFTopology *in
if
(
FAILED
(
hr
=
MFCreateTopology
(
&
output_topology
)))
return
hr
;
IMFTopology_CopyAllItems
(
input_topology
,
(
IMFAttributes
*
)
output_topology
);
context
.
input_topology
=
input_topology
;
context
.
output_topology
=
output_topology
;
memset
(
&
context
.
key
,
0xff
,
sizeof
(
context
.
key
));
...
...
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