diff options
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r-- | src/outputBuffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c index f4c56a36a..ff8cf7587 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -73,7 +73,7 @@ static void output_buffer_expand(unsigned i) /* if the buffer was empty, the player thread might be waiting for us; wake it up now that another decoded buffer has become available. */ - decoder_wakeup_player(); + notify_signal(&pc.notify); } void ob_flush(void) @@ -183,7 +183,8 @@ static int tailChunk(InputStream * inStream, } } if (!inStream || bufferInputStream(inStream) <= 0) { - decoder_sleep(); + notify_wait(&dc.notify); + notify_signal(&pc.notify); } } |