Skip to content

Commit

Permalink
Fix V4L2 encoder not releasing requests
Browse files Browse the repository at this point in the history
Signed-off-by: William Vinnicombe <[email protected]>
  • Loading branch information
will-v-pi authored Oct 14, 2024
1 parent 055032e commit d547f58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions picamera2/encoders/v4l2_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ def thread_poll(self, buf_available):
# few hundred ms than wait forever. Note that self.buf_frame.qsize()
# frames (usually just 1) are getting dropped here, and won't be
# encoded. I've only ever seen this on a Pi Zero.
while self.buf_frame.qsize() > 0:
queue_item = self.buf_frame.get()
queue_item.release()
break

for _, event in events:
Expand Down

0 comments on commit d547f58

Please sign in to comment.