robotpy-cscore icon indicating copy to clipboard operation
robotpy-cscore copied to clipboard

UsbCameras getting destroyed when they go out of scope

Open virtuald opened this issue 6 years ago • 1 comments

It seems to me that startAutomaticCapture should be keeping a reference to this thing... I think I've had at least two reports of people having issues with it disappearing on them. Should fix this .

virtuald avatar Apr 12 '19 23:04 virtuald

Pretty sure it does. startAutomaticCapture calls addCamera which stores a reference in the self._sources dict.

auscompgeek avatar Apr 13 '19 00:04 auscompgeek