]> err.no Git - mapper/commitdiff
Stop the pipeline when done so we can speak again.
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 9 Aug 2007 10:35:17 +0000 (13:35 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 9 Aug 2007 10:35:17 +0000 (13:35 +0300)
src/speak.c

index 11d1bad66642216f920fa44eadfec5ece5c4a07d..007df04bdb0b3ad78f248a0a375599a94a694785 100644 (file)
@@ -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);
 }