summaryrefslogtreecommitdiff
path: root/src/py/examples/simple-continuous-capture.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/py/examples/simple-continuous-capture.py')
-rwxr-xr-xsrc/py/examples/simple-continuous-capture.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/py/examples/simple-continuous-capture.py b/src/py/examples/simple-continuous-capture.py
index fe78a2dd..26a8060b 100755
--- a/src/py/examples/simple-continuous-capture.py
+++ b/src/py/examples/simple-continuous-capture.py
@@ -88,8 +88,9 @@ class CaptureContext:
camera_contexts: list[CameraCaptureContext] = []
def handle_camera_event(self):
- # cm.get_ready_requests() will not block here, as we know there is an event
- # to read.
+ # cm.get_ready_requests() returns the ready requests, which in our case
+ # should almost always return a single Request, but in some cases there
+ # could be multiple or none.
reqs = self.cm.get_ready_requests()