aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:18:43 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:18:43 +0000
commit7642d10fe90f77e21addbbbdfb02d95494655bc2 (patch)
tree97af5a42fb35747553f6c97e9a39701e0d7c20fc /src/outputBuffer.c
parentf2cdac6ee7a338ace92c6e884f65b9f89841970e (diff)
downloadmpd-7642d10fe90f77e21addbbbdfb02d95494655bc2.tar.gz
mpd-7642d10fe90f77e21addbbbdfb02d95494655bc2.tar.xz
mpd-7642d10fe90f77e21addbbbdfb02d95494655bc2.zip
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
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r--src/outputBuffer.c2
1 files changed, 1 insertions, 1 deletions
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)