diff options
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r-- | src/cam/main.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index 0c66a98e..70d86bcf 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -180,11 +180,18 @@ static int capture() } std::cout << "Capture until user interrupts by SIGINT" << std::endl; - camera->start(); + + ret = camera->start(); + if (ret) { + std::cout << "Failed to start capture" << std::endl; + goto out; + } ret = loop->exec(); - camera->stop(); + ret = camera->stop(); + if (ret) + std::cout << "Failed to stop capture" << std::endl; out: camera->freeBuffers(); |