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:
parent
e196619f69
commit
af4d5c96d4
|
@ -1612,16 +1612,8 @@ 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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue