From 7642d10fe90f77e21addbbbdfb02d95494655bc2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:18:43 +0000 Subject: pass DecoderControl object to decoder_sleep() Less global variables: at any invocation of decoder_sleep(), we have a reference to the DecoderControl anyway, so we should pass it. This costs less than having to call getPlayerData() in every tiny function. Maybe some day we will be able to have multiple decoders at the same time... git-svn-id: https://svn.musicpd.org/mpd/trunk@7316 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/outputBuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/outputBuffer.c') diff --git a/src/outputBuffer.c b/src/outputBuffer.c index de649e0c7..1f33ad7c2 100644 --- a/src/outputBuffer.c +++ b/src/outputBuffer.c @@ -147,7 +147,7 @@ static int tailChunk(OutputBuffer * cb, InputStream * inStream, } if (!inStream || bufferInputStream(inStream) <= 0) { - decoder_sleep(); + decoder_sleep(dc); } } if (dc->stop) -- cgit v1.2.3