I was browsing the code and noticed that there are static (i.e., global) variables nConsecutiveBadFrames and nBadFramesPrior. Probably not a huge problem in practice but I thought I bring it to your attention as it may cause confusion if multiple devices are in use and experiencing problems.
I was browsing the code and noticed that there are static (i.e., global) variables
nConsecutiveBadFrames
andnBadFramesPrior
. Probably not a huge problem in practice but I thought I bring it to your attention as it may cause confusion if multiple devices are in use and experiencing problems.