It's been over a month since starting to try and modify PushSource to handle loading an image on-demand versus versus loading an image in the constructor.
What was done: it took a while but the file load code has been abstracted out of the constructor and into a method "SetFileName()". The idea was to build the graph then, at some later point in time, disconnect PushSourceBitmap, load a new file, then reconnect PushSourceBitmap. Tracing execution of building the graph then doing a Run() showed the framework doing negotiations back and forth with the Run()... so my thought was that negotiations started at the Run().
That didn't work the way I thought it might.
The "brute force" solution (tear down the graph, loading a new image, then rebuilding the graph) looks like the only option. That's going to force a rewrite of the application.
My worry now is that destroying the entire graph will create memory leaks. Or can I run CoUninitialize() and clear everything out that way?
Suggestions, pointers, discussion would be appreciated.
My thanks.
Mark