From 2d194f57a91651dfd02b6b7265c1644e72a43c5c Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 9 Aug 2007 13:35:17 +0300 Subject: [PATCH] Stop the pipeline when done so we can speak again. --- src/speak.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.5