Decklink and Stream Buffer Engine
I've brought this issue to the MSDN forums, and the conclusion there is that it may have something to do with the BMDCodecLib.
I'm developing an app in wich I'm using the Directshow Stream Buffer Engine. The objective is to record live input, and being able to playback it while it's being recorded, with normal player controls (play, pause, stop).
My problem is that though the recording seems to be working normally, the playback, in wich a BMD decoder is used on the recorded video stream, crashes, and the callstack points to the BMDCodecLib. I also think it may have something to do with that codec because if no reference is made to decklink (ie. using a file as source and playback to a normal render) everything works fine.
Here is some of the code:
The Capture Graph:
The Playback Graph:
Here is how the graphs look like in the end:
And here is some info about the video stream on these filters' input:
I think the recording is working because the files are there and the stream format on the Decompressor is the same as in the Sink. This AVI Decompressor is placed by the Directshow Intelligent Connect. It appears also in the Capture Graph, after the InfTee, before a preview window, but there it does it's work, and I see the preview. In the Playback graph, it crashes.
Here is the call stack:
I hope I was clear enough. I can provide more info if needed.
Any help would be much appreciated.
Adding some more info:
The same configuration, but with SD input instead of HD, gave me the following stream inputs:
And the following call stack:
Is there a way to know what is the faulting function inside the lib?