Only init camera if capturing

This commit is contained in:
Isaac Connor 2021-02-24 10:33:29 -05:00
parent 381b7e1b25
commit 099ca9251c
1 changed files with 1 additions and 1 deletions

View File

@ -676,7 +676,7 @@ LocalCamera::LocalCamera(
imgConversionContext = nullptr;
} // end if capture and conversion_tye == swscale
#endif
if ( device_prime )
if ( capture and device_prime )
Initialise();
} // end LocalCamera::LocalCamera