We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f5255a + 2695db2 commit 64fb09bCopy full SHA for 64fb09b
1 file changed
picamerax/mmalobj.py
@@ -1298,7 +1298,11 @@ def wrapper(port, buf):
1298
finally:
1299
buf.release()
1300
try:
1301
- self._pool.send_buffer(block=False)
+ # Only try to send buffer if the port type is output
1302
+ # or else we will suffer a MMAL no buffers available
1303
+ # error.
1304
+ if self._port[0].type == mmal.MMAL_PORT_TYPE_OUTPUT:
1305
+ self._pool.send_buffer(block=False)
1306
except PiCameraPortDisabled:
1307
# The port was disabled, no point trying again
1308
pass
0 commit comments