Nikolay Sivov (@nsivov) commented about dlls/mf/topology.c:
object->id = id;
*topology = &object->IMFTopology_iface;
return S_OK;
}
+/***********************************************************************
MFCreateTopology (mf.@)
- */
+HRESULT WINAPI MFCreateTopology(IMFTopology **topology) +{
- TRACE("%p.\n", topology);
- return create_topology_with_id(0, topology);
+}
Just call it with a new topoid value, no need to complicate this.