Fixed BytesIO streams closing after capture
This commit is contained in:
parent
387fdeeb7d
commit
cdac9d0ac3
1 changed files with 2 additions and 1 deletions
|
|
@ -195,7 +195,8 @@ class MockStreamer(BaseCamera):
|
|||
|
||||
output.write(self.stream.getvalue())
|
||||
|
||||
output.close()
|
||||
if isinstance(output, str):
|
||||
output.close()
|
||||
|
||||
# HANDLE STREAM FRAMES
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue