Commit af4d5c96 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/topology: Remove logic already present in stream resize helper.

parent e196619f
......@@ -1612,15 +1612,7 @@ static HRESULT WINAPI topology_node_SetInputPrefType(IMFTopologyNode *iface, DWO
break;
default:
if (SUCCEEDED(hr = topology_node_reserve_streams(&node->inputs, index)))
{
if (index >= node->inputs.count)
{
memset(&node->inputs.streams[node->inputs.count], 0,
(index - node->inputs.count + 1) * sizeof(*node->inputs.streams));
node->inputs.count = index + 1;
}
topology_node_set_stream_type(&node->inputs.streams[index], mediatype);
}
}
LeaveCriticalSection(&node->cs);
......
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