Bernhard Kölbl (@besentv) commented about dlls/mf/topology_loader.c:
return hr;
}
+HRESULT topology_node_init_media_type(IMFTopologyNode *node, DWORD stream, BOOL output, IMFMediaType **type) +{
- IMFMediaTypeHandler *handler;
- HRESULT hr;
- if (SUCCEEDED(hr = topology_node_get_type_handler(node, stream, output, &handler)))
- {
if (SUCCEEDED(hr = get_first_supported_media_type(handler, type)))
Contrary to topology_branch_foreach_up_types, this only tries to set the first supported type instead of going through all.