diff --git a/src/zm_local_camera.cpp b/src/zm_local_camera.cpp index f5c884532..038f7b42a 100644 --- a/src/zm_local_camera.cpp +++ b/src/zm_local_camera.cpp @@ -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