Skip to content

Commit

Permalink
adding explicit release of VideoWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
mkassner committed Dec 2, 2013
1 parent 22d0a5c commit 0dab470
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pupil_src/capture/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ def update(self, frame,recent_pupil_positons):
self.writer.write(frame.img)

def stop_and_destruct(self):
#explicit release of VideoWriter
self.writer.release()
self.writer = None

if self.record_eye:
try:
self.eye_tx.send(None)
Expand Down

0 comments on commit 0dab470

Please sign in to comment.