Commit fa23650f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

mfmediaengine: Allow decoder / converter to be resolved between topology nodes.

parent a9871e4a
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment