Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Fix #628 Unload Input Source Problem
Browse files Browse the repository at this point in the history
Now the user can load and unload video/audio input sources
and record without closing the program.

This bug was caused because the flag variables
self.record_audio and self.record_video are not cleared
after a cycle of recording ends. So the program will
try to unload the source even it has been unchecked.
This fix reset the variables by the end of recording
so it will not influence the next one.
  • Loading branch information
Cryspia committed Oct 27, 2014
1 parent b229577 commit 807dc2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/freeseer/framework/multimedia.py
Expand Up @@ -349,6 +349,7 @@ def unload_audiomixer(self):

self.audiomixer.unlink(self.audio_tee)
self.player.remove(self.audiomixer)
self.record_audio = False

def load_videomixer(self, mixer, inputs):
self.record_video = True
Expand All @@ -375,3 +376,4 @@ def unload_videomixer(self):

self.videomixer.unlink(self.video_tee)
self.player.remove(self.videomixer)
self.record_video = False

0 comments on commit 807dc2a

Please sign in to comment.