diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-04-13 01:16:03 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-13 01:16:03 +0000 |
commit | dec6b1612e953c6029d963ff55d2b4a669b60f43 (patch) | |
tree | a1138cb07f67c821ee5000618302d21367ab2245 /src/playerData.c | |
parent | 98acfa8ac5bac09ca49a7c21938b5a5801e01ca5 (diff) | |
download | mpd-dec6b1612e953c6029d963ff55d2b4a669b60f43.tar.gz mpd-dec6b1612e953c6029d963ff55d2b4a669b60f43.tar.xz mpd-dec6b1612e953c6029d963ff55d2b4a669b60f43.zip |
Stop passing our single DecoderControl object everywhere
This at least makes the argument list to a lot of our plugin
functions shorter and removes a good amount of line nois^W^Wcode,
hopefully making things easier to read and follow.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7353 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/playerData.c')
-rw-r--r-- | src/playerData.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/playerData.c b/src/playerData.c index 11f86f7f4..a466ab5d7 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -28,6 +28,7 @@ unsigned int buffered_before_play; static PlayerData playerData_pd; PlayerControl pc; +DecoderControl dc; void initPlayerData(void) { @@ -85,13 +86,9 @@ void initPlayerData(void) pc.crossFade = crossfade; pc.softwareVolume = 1000; - notifyInit(&playerData_pd.decoderControl.notify); - playerData_pd.decoderControl.stop = 0; - playerData_pd.decoderControl.start = 0; - playerData_pd.decoderControl.state = DECODE_STATE_STOP; - playerData_pd.decoderControl.seek = 0; - playerData_pd.decoderControl.error = DECODE_ERROR_NOERROR; - playerData_pd.decoderControl.current_song = NULL; + notifyInit(&dc.notify); + dc.state = DECODE_STATE_STOP; + dc.error = DECODE_ERROR_NOERROR; } PlayerData *getPlayerData(void) |