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
2d88c577
Commit
2d88c577
authored
Jan 24, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/topology_loader: Try to connect transform nodes with their current types first.
And only if that fails try again by enumerating types.
parent
d95d1132
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
mf.c
dlls/mf/tests/mf.c
+0
-4
topology_loader.c
dlls/mf/topology_loader.c
+5
-2
No files found.
dlls/mf/tests/mf.c
View file @
2d88c577
...
...
@@ -3705,17 +3705,13 @@ todo_wine {
hr
=
IMFTopology_SetUINT32
(
full_topology
,
&
IID_IMFTopology
,
123
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IMFTopoLoader_Load
(
loader
,
full_topology
,
&
topology2
,
NULL
);
todo_wine_if
(
IsEqualGUID
(
&
test
->
decoder_class
,
&
CLSID_MSH264DecoderMFT
))
ok
(
hr
==
S_OK
,
"Failed to resolve topology, hr %#lx.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
full_topology
!=
topology2
,
"Unexpected instance.
\n
"
);
hr
=
IMFTopology_GetUINT32
(
topology2
,
&
IID_IMFTopology
,
&
value
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ref
=
IMFTopology_Release
(
topology2
);
ok
(
ref
==
0
,
"Release returned %ld
\n
"
,
ref
);
}
ref
=
IMFTopology_Release
(
full_topology
);
ok
(
ref
==
0
,
"Release returned %ld
\n
"
,
ref
);
}
...
...
dlls/mf/topology_loader.c
View file @
2d88c577
...
...
@@ -525,8 +525,11 @@ static HRESULT topology_loader_resolve_branches(struct topoloader_context *conte
else
if
(
FAILED
(
hr
=
topology_branch_clone_nodes
(
context
,
branch
)))
WARN
(
"Failed to clone nodes for branch %s
\n
"
,
debugstr_topology_branch
(
branch
));
else
hr
=
topology_branch_connect
(
context
->
output_topology
,
MF_CONNECT_ALLOW_DECODER
,
branch
,
enumerate_source_types
||
node_type
==
MF_TOPOLOGY_TRANSFORM_NODE
);
{
hr
=
topology_branch_connect
(
context
->
output_topology
,
MF_CONNECT_ALLOW_DECODER
,
branch
,
enumerate_source_types
);
if
(
hr
==
MF_E_INVALIDMEDIATYPE
&&
!
enumerate_source_types
&&
node_type
==
MF_TOPOLOGY_TRANSFORM_NODE
)
hr
=
topology_branch_connect
(
context
->
output_topology
,
MF_CONNECT_ALLOW_DECODER
,
branch
,
TRUE
);
}
topology_branch_destroy
(
branch
);
if
(
FAILED
(
hr
))
...
...
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