Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/espeak.py
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-07-31 22:09:07 (GMT)
committer flavio <fdanesse@gmail.com>2012-07-31 22:09:07 (GMT)
commitb8956e91ff674fd2afb459dbe0a811f5dbeffd5a (patch)
tree5eed86cf194e3afd08d8953671a19e89f473458f /espeak.py
parent94e71e0bb0314aeeb26effacc95be8bc9b11cdfb (diff)
Corrections
Diffstat (limited to 'espeak.py')
-rw-r--r--espeak.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/espeak.py b/espeak.py
index 524dee9..e860494 100644
--- a/espeak.py
+++ b/espeak.py
@@ -87,8 +87,6 @@ class BaseAudioGrab(GObject.GObject):
self._new_buffer, str(buffer))
return True
- sink = self.pipeline.get_by_name('sink')
-
def gstmessage_cb(bus, message):
self._was_message = True
@@ -105,7 +103,10 @@ class BaseAudioGrab(GObject.GObject):
self.andle2 = GObject.timeout_add(500,
self._new_buffer, str(buffer))
- elif message.type in (Gst.MessageType.EOS, Gst.MessageType.ERROR):
+ elif message.type == Gst.MessageType.EOS:
+ pass
+
+ elif message.type == Gst.MessageType.ERROR:
logger.debug(message.type)
self.stop_sound_device()