From 241cd043ca4f9dd560e6d947a9bf025f58de4ea9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:04 +0200 Subject: invoke the notify API directly Don't use wrappers like player_wakeup_decoder_nb(). These have been wrappers calling notify.c functions, for compatibility with the existing code when we migrated to notify.c. --- src/outputBuffer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/outputBuffer.c') 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); } } -- cgit v1.2.3