diff options
author | Daniel Drake <dsd@laptop.org> | 2010-06-30 15:43:47 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2010-06-30 15:43:47 (GMT) |
commit | a8e9f325d511d346f3d7fe703d21624510609671 (patch) | |
tree | 5ec06d9e3cef6d8bd478200ea775e3f8594f083a | |
parent | d86e40b6f69820e0302d272c0fe110c6987246dc (diff) |
Stop pipeline while stopping audio recordingv83
Avoids a segfault which is probably due to a gstreamer bug.
http://dev.laptop.org/ticket/10183
-rw-r--r-- | glive.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -315,8 +315,13 @@ class Glive: return False def stopRecordingAudio( self ): - self.audiobin.set_state(gst.STATE_NULL) + # We should be able to simply pause and remove the audiobin, but + # this seems to cause a gstreamer segfault. So we stop the whole + # pipeline while manipulating it. + # http://dev.laptop.org/ticket/10183 + self.pipeline.set_state(gst.STATE_NULL) self.pipeline.remove(self.audiobin) + self.pipeline.set_state(gst.STATE_PLAYING) gobject.idle_add( self.stoppedRecordingAudio ) |