From 523edc15322b9af8d99a79e5e809dfae7222eeaa Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Mon, 30 Jun 2008 21:25:52 +0000 Subject: Remove gst signal watch before disabling sync message emission A gstreamer assertion suggests this is the correct order of operations. --- 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") -- cgit v0.9.1