Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-06-30 15:43:47 (GMT)
committer Daniel Drake <dsd@laptop.org>2010-06-30 15:43:47 (GMT)
commita8e9f325d511d346f3d7fe703d21624510609671 (patch)
tree5ec06d9e3cef6d8bd478200ea775e3f8594f083a
parentd86e40b6f69820e0302d272c0fe110c6987246dc (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.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/glive.py b/glive.py
index 40815a4..18f4cd4 100644
--- a/glive.py
+++ b/glive.py
@@ -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 )