aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.h
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/decode.h
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/decode.h')
-rw-r--r--src/decode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decode.h b/src/decode.h
index ed9a25081..702c0322d 100644
--- a/src/decode.h
+++ b/src/decode.h
@@ -61,7 +61,7 @@ void decode(void);
void decoder_wakeup_player(void);
-void decoder_sleep(void);
+void decoder_sleep(DecoderControl * dc);
void decoderInit(void);