Skip to content

Commit

Permalink
Updated timeout comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando79513 committed Aug 28, 2024
1 parent 39cca8e commit 6cef7d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion providers/base/bin/camera_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,9 @@ def _capture_image_gstreamer(self, filename, width, height, pixelformat):
self.main_loop.quit()
self.pipeline.set_state(self.Gst.State.NULL)

# Remove the timeout
# If the image is captured correctly and the timeout is not reached,
# remove the GLib timeout, so it does not interfere with the next
# iteration.
if self.timeout:
self.GLib.source_remove(self.timeout)
return 0
Expand Down

0 comments on commit 6cef7d6

Please sign in to comment.