cplussharp / graph-studio-next

GraphStudioNext is a tool for developers to build and test DirectShow Graphs
355 stars 94 forks source link

Crash when loading a .GRF with a bridge source/sink #266

Open SebasLedesma opened 9 years ago

SebasLedesma commented 9 years ago

When loading a .GRF wich includes a bridge sink or source it will crash. Reason: the GMF source/sink bridge filters have NULL GUID, so there is no class factory associated with them. Instead they need to be constructed trought a BridgeSink or BridgeSource created from a BridgeController. Proposed solutions: 1 - Detect filters with NULL GUID to avoid crash. 2 a- Create a dummy filter that catch the source/sink filter so the graph can be loaded and showed. 2 b- Detect if they have the name "Bridge Source filter" or "Bridge Sink filter" and create a BridgeController on the fly and the associated source/sink filter. graphstudionext_bridgecrash