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
0dab1ffd
Commit
0dab1ffd
authored
Jun 07, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/topology_loader: Use a local variable for the indirect connection method.
Instead of modifying the method_mask parameter, in case we need to retry with another transform.
parent
56b1f802
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
topology_loader.c
dlls/mf/topology_loader.c
+3
-2
No files found.
dlls/mf/topology_loader.c
View file @
0dab1ffd
...
...
@@ -296,6 +296,7 @@ static HRESULT topology_branch_connect_indirect(IMFTopology *topology, MF_CONNEC
{
struct
topology_branch
down_branch
=
{.
up
.
node
=
node
,
.
down
=
branch
->
down
};
struct
topology_branch
up_branch
=
{.
up
=
branch
->
up
,
.
down
.
node
=
node
};
MF_CONNECT_METHOD
method
=
method_mask
;
if
(
FAILED
(
IMFActivate_ActivateObject
(
activates
[
i
],
&
IID_IMFTransform
,
(
void
**
)
&
transform
)))
continue
;
...
...
@@ -313,12 +314,12 @@ static HRESULT topology_branch_connect_indirect(IMFTopology *topology, MF_CONNEC
if
(
SUCCEEDED
(
hr
))
hr
=
IMFTransform_SetOutputType
(
transform
,
0
,
down_type
,
0
);
if
(
SUCCEEDED
(
hr
))
method
_mask
=
MF_CONNECT_DIRECT
;
method
=
MF_CONNECT_DIRECT
;
}
IMFTransform_Release
(
transform
);
if
(
SUCCEEDED
(
hr
))
hr
=
topology_branch_connect
(
topology
,
method
_mask
,
&
down_branch
,
!
down_type
);
hr
=
topology_branch_connect
(
topology
,
method
,
&
down_branch
,
!
down_type
);
if
(
SUCCEEDED
(
hr
))
hr
=
IMFTopology_AddNode
(
topology
,
node
);
if
(
SUCCEEDED
(
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