mirror of
https://github.com/vale981/Taevitas
synced 2025-03-06 01:51:38 -05:00
do not grab that last image
This commit is contained in:
parent
ff9f0b6ba5
commit
d9df3b9cf2
1 changed files with 2 additions and 1 deletions
|
@ -57,13 +57,14 @@ void CameraManager::stopCapture() {
|
||||||
if ( !is_capturing )
|
if ( !is_capturing )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
grabber->stopCapturing();
|
||||||
|
|
||||||
Error error = camera.StopCapture();
|
Error error = camera.StopCapture();
|
||||||
if ( error != PGRERROR_OK ) {
|
if ( error != PGRERROR_OK ) {
|
||||||
throw error;
|
throw error;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
grabber->stopCapturing();
|
|
||||||
grabber->wait();
|
grabber->wait();
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue