From d507ff28c8ae18d4a17c8565de723fb522d2473d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:03 +0200 Subject: added dc.next_song, renamed pc.current_song Since pc->current_song denotes the song which the decoder should use next, we should move it to DecoderControl. This removes one internal PlayerControl struct access from the decoder code. Also add pc.next_song, which is manipulated by the playlist code, and gets copied to dc.next_song as soon as the decoder is started. --- src/player.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 031aef53d..db8f44de6 100644 --- a/src/player.h +++ b/src/player.h @@ -63,7 +63,7 @@ typedef struct _PlayerControl { volatile float totalTime; volatile float elapsedTime; volatile float fileTime; - Song *current_song; + Song *volatile next_song; Song *errored_song; volatile mpd_sint8 queueState; volatile mpd_sint8 queueLockState; -- cgit v1.2.3