Only init camera if capturing
This commit is contained in:
parent
381b7e1b25
commit
099ca9251c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue