Skip to content

Commit

Permalink
Merge pull request #52 from stephematician/master
Browse files Browse the repository at this point in the history
Fix likely REQBUFS failure when memory still mapped
  • Loading branch information
tiagocoutinho authored Oct 22, 2024
2 parents bc938ef + e53bbfd commit d223fa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linuxpy/video/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1847,8 +1847,10 @@ def prepare_buffers(self):

def release_buffers(self):
self.device.log.info("Freeing buffers...")
self.buffer_manager.free_buffers(self.source)
for buf in self.buffers:
buf.close()
self.buffers = None
self.buffer_manager.free_buffers(self.source)
self.format = None
self.device.log.info("Buffers freed")

Expand Down

0 comments on commit d223fa2

Please sign in to comment.