summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cam/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 13aa3596..1ca7862b 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -102,6 +102,9 @@ static void requestComplete(Request *request, const std::map<Stream *, Buffer *>
{
static uint64_t last = 0;
+ if (request->status() == Request::RequestCancelled)
+ return;
+
Buffer *buffer = buffers.begin()->second;
double fps = buffer->timestamp() - last;