Message ID | 20190224171407.7856-3-niklas.soderlund@ragnatech.se |
---|---|
State | Accepted |
Commit | dd14f1ec2cb772d731570df54bbc9e10eae9e018 |
Headers | show |
Series |
|
Related | show |
diff --git a/src/cam/main.cpp b/src/cam/main.cpp index b034eb25429abeb3..30267970a2c8485f 100644 --- a/src/cam/main.cpp +++ b/src/cam/main.cpp @@ -183,11 +183,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();