From: Kaj-Michael Lang Date: Thu, 9 Aug 2007 10:35:17 +0000 (+0300) Subject: Stop the pipeline when done so we can speak again. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d194f57a91651dfd02b6b7265c1644e72a43c5c;p=mapper Stop the pipeline when done so we can speak again. --- diff --git a/src/speak.c b/src/speak.c index 11d1bad..007df04 100644 --- a/src/speak.c +++ b/src/speak.c @@ -48,6 +48,7 @@ switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_EOS: g_print ("EOS\n"); speaking=FALSE; + speak_stop(); break; case GST_MESSAGE_ERROR: gst_message_parse_error (msg, &err, &debug); @@ -56,6 +57,7 @@ switch (GST_MESSAGE_TYPE (msg)) { g_printf ("Error: %s\n", err->message); g_error_free (err); + speak_stop(); speaking=FALSE; break; case GST_MESSAGE_STATE_CHANGED: @@ -106,6 +108,7 @@ return TRUE; static void espeak_buffer_free(void *p) { +g_print("Buffer free\n"); g_free(p); }