- Posts: 11
- Joined: Thu Dec 21, 2017 11:07 am
I was also able to observe this problem. It appears that VideoInputFrameArrived callbacks continue to occur after StopStreams. I am testing why this only seen in 10-bit RGB and not other pixel formats.
The quick solution is to unregister the callback after StopStreams. In the source, towards the end of main()
- Code: Select all
fprintf(stderr, "Stopping Capture\n");
g_deckLinkInput->StopStreams();
g_deckLinkInput->SetCallback(NULL); // add this line
g_deckLinkInput->DisableAudioInput();
g_deckLinkInput->DisableVideoInput();
Please let me know if this resolves the issue.
Kind Regards
Cameron