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
fa23650f
Commit
fa23650f
authored
Apr 03, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfmediaengine: Allow decoder / converter to be resolved between topology nodes.
parent
a9871e4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
main.c
dlls/mfmediaengine/main.c
+3
-1
No files found.
dlls/mfmediaengine/main.c
View file @
fa23650f
...
@@ -1060,6 +1060,7 @@ static HRESULT media_engine_create_effects(struct effect *effects, size_t count,
...
@@ -1060,6 +1060,7 @@ static HRESULT media_engine_create_effects(struct effect *effects, size_t count,
for
(
i
=
0
;
i
<
count
;
++
i
)
for
(
i
=
0
;
i
<
count
;
++
i
)
{
{
UINT32
method
=
MF_CONNECT_ALLOW_DECODER
;
IMFTopologyNode
*
node
=
NULL
;
IMFTopologyNode
*
node
=
NULL
;
if
(
FAILED
(
hr
=
MFCreateTopologyNode
(
MF_TOPOLOGY_TRANSFORM_NODE
,
&
node
)))
if
(
FAILED
(
hr
=
MFCreateTopologyNode
(
MF_TOPOLOGY_TRANSFORM_NODE
,
&
node
)))
...
@@ -1072,7 +1073,8 @@ static HRESULT media_engine_create_effects(struct effect *effects, size_t count,
...
@@ -1072,7 +1073,8 @@ static HRESULT media_engine_create_effects(struct effect *effects, size_t count,
IMFTopologyNode_SetUINT32
(
node
,
&
MF_TOPONODE_NOSHUTDOWN_ON_REMOVE
,
FALSE
);
IMFTopologyNode_SetUINT32
(
node
,
&
MF_TOPONODE_NOSHUTDOWN_ON_REMOVE
,
FALSE
);
if
(
effects
[
i
].
optional
)
if
(
effects
[
i
].
optional
)
IMFTopologyNode_SetUINT32
(
node
,
&
MF_TOPONODE_CONNECT_METHOD
,
MF_CONNECT_AS_OPTIONAL
);
method
|=
MF_CONNECT_AS_OPTIONAL
;
IMFTopologyNode_SetUINT32
(
node
,
&
MF_TOPONODE_CONNECT_METHOD
,
method
);
IMFTopology_AddNode
(
topology
,
node
);
IMFTopology_AddNode
(
topology
,
node
);
IMFTopologyNode_ConnectOutput
(
last
,
0
,
node
,
0
);
IMFTopologyNode_ConnectOutput
(
last
,
0
,
node
,
0
);
...
...
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