Browse Source

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.
master
Reece H. Dunn 9 years ago
parent
commit
ca831d236a
1 changed files with 0 additions and 6 deletions
  1. 0
    6
      src/libespeak-ng/fifo.c

+ 0
- 6
src/libespeak-ng/fifo.c View File

@@ -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;

Loading…
Cancel
Save