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/decode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decode.h') 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); -- cgit v1.2.3