From ca831d236a4eed5648254329554affac143a1740 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sun, 7 Feb 2016 18:25:30 +0000 Subject: [PATCH] Don't call wave_close in fifo.c. This is handled by calls to espeak_ng_Cancel/espeak_Cancel and espeak_ng_Terminate/espeak_Terminate. --- src/libespeak-ng/fifo.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/libespeak-ng/fifo.c b/src/libespeak-ng/fifo.c index 0b8e6464..3410d154 100644 --- a/src/libespeak-ng/fifo.c +++ b/src/libespeak-ng/fifo.c @@ -221,10 +221,6 @@ static int sleep_until_start_request_or_inactivity() static espeak_ng_STATUS close_stream() { - // Warning: a wave_close can be already required by - // an external command (espeak_Cancel + fifo_stop), if so: - // my_stop_is_required = 1; - espeak_ng_STATUS status = pthread_mutex_lock(&my_mutex); if (status != ENS_OK) return status; @@ -236,8 +232,6 @@ static espeak_ng_STATUS close_stream() status = pthread_mutex_unlock(&my_mutex); if (!a_stop_is_required) { - wave_close(NULL); - int a_status = pthread_mutex_lock(&my_mutex); if (status == ENS_OK) status = a_status;