aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:04 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:04 +0200
commit241cd043ca4f9dd560e6d947a9bf025f58de4ea9 (patch)
treed674656743e506ca5ae183638fdddc5f3c411dc8 /src/outputBuffer.c
parent87beded44f0798c80744fcaebb06cac9ce8bbf39 (diff)
downloadmpd-241cd043ca4f9dd560e6d947a9bf025f58de4ea9.tar.gz
mpd-241cd043ca4f9dd560e6d947a9bf025f58de4ea9.tar.xz
mpd-241cd043ca4f9dd560e6d947a9bf025f58de4ea9.zip
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.
Diffstat (limited to '')
-rw-r--r--src/outputBuffer.c5
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);
}
}