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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-05-22 17:15:10 +03:00 committed by Alexandre Julliard
parent e196619f69
commit af4d5c96d4
1 changed files with 0 additions and 8 deletions

View File

@ -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);