add a code comment

This commit is contained in:
Isaac Connor 2018-05-07 11:08:06 -04:00
parent cdf53e36e9
commit d31b33ffc6
1 changed files with 2 additions and 0 deletions

View File

@ -220,6 +220,8 @@ int LibvlcCamera::PreCapture() {
// Should not return -1 as cancels capture. Always wait for image if available.
int LibvlcCamera::Capture(Image &image) {
// newImage is a mutex/condition based flag to tell us when there is an image available
while( !mLibvlcData.newImage.getValueImmediate() ) {
if (zm_terminate)
return 0;