The problem is to build a capture graph supported three states:
- Preview only
- Capture to AVI-file only
- Combine
I have built the graph like this:
This graph corresponds to state 3. Now, if I want to change on state 2 I remove the preview stream and get the graph like this:
Imagine I run the graph and start capture. Now I want to back to state 3. How can I do this (add a preview stream) without stopping the graph? (Capture should continue).
UPD. Maybe it will be possible to capture to the end of AVI-file? If so, I could stop the graph at state 2, add a preview stream to it (change to state 3) and continue capture to the end of exsisting AVI-file (generated on previous step). Is it possible?
UPD2. I found some hack. When I want to change on state 2 from state 3 I just hide a preview-window. When I want to back to state 3 I show a preview-window. Thus, I don't need state 2 anymore since state 2 is just state 3 with hided preview-window!