Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2008-06-30 21:25:52 (GMT)
committer Daniel Drake <dsd@laptop.org>2008-06-30 21:26:11 (GMT)
commit523edc15322b9af8d99a79e5e809dfae7222eeaa (patch)
treeac82a61dc47137f72bb6e296b2bc5aed5b6cbd31
parent9a8768ce915e14a5a9a00297cfeb907f76ad0a2c (diff)
Remove gst signal watch before disabling sync message emission
A gstreamer assertion suggests this is the correct order of operations.
-rw-r--r--glive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glive.py b/glive.py
index ce08fa2..fb8834d 100644
--- a/glive.py
+++ b/glive.py
@@ -450,8 +450,8 @@ class Glive:
gobject.source_remove(self.TRANSCODE_ID)
self.TRANSCODE_ID = 0
pipe.set_state(gst.STATE_NULL)
- pipe.get_bus().disable_sync_message_emission()
pipe.get_bus().remove_signal_watch()
+ pipe.get_bus().disable_sync_message_emission()
wavFilepath = os.path.join(Instance.instancePath, "output.wav")
oggFilepath = os.path.join(Instance.instancePath, "output.ogg") #ogv
@@ -476,8 +476,8 @@ class Glive:
gobject.source_remove(self.TRANSCODE_ID)
self.TRANSCODE_ID = 0
pipe.set_state(gst.STATE_NULL)
- pipe.get_bus().disable_sync_message_emission()
pipe.get_bus().remove_signal_watch()
+ pipe.get_bus().disable_sync_message_emission()
wavFilepath = os.path.join(Instance.instancePath, "output.wav")
oggFilepath = os.path.join(Instance.instancePath, "output.ogg")