Alright, I've moved everything to a more proper programming structure, here's the relevant code for reference.
https://gist.github.com/SnowCrystalz...12f0023b932695
There's still the error, however it occurs when grabbing the frame. It doesn't seem to get further than the if statement. It doesn't even fail it just stalls with the "too many streams" error during the cvSink.grabFrame(mat).
I've moved the stream to RobotMap, and as far as I can tell it's the only one that is ever made. That also doesn't explain why it halts during grabFrame. To me it seems as though the cvSink is never created, or there isn't an open stream for it to put the frame into but there clearly is in RobotMap.
I am lost.
Thanks for the help guys,
- Evan : 1245 Programming