aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:03 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:03 +0200
commitd507ff28c8ae18d4a17c8565de723fb522d2473d (patch)
tree8715ad61b9aa6700ddbe37a84d3e6650477155d7 /src/decode.h
parentb6909da758f90e8f4aeea1309030364b8d6e0505 (diff)
downloadmpd-d507ff28c8ae18d4a17c8565de723fb522d2473d.tar.gz
mpd-d507ff28c8ae18d4a17c8565de723fb522d2473d.tar.xz
mpd-d507ff28c8ae18d4a17c8565de723fb522d2473d.zip
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.
Diffstat (limited to 'src/decode.h')
-rw-r--r--src/decode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decode.h b/src/decode.h
index 8ee2a095f..990f5e57a 100644
--- a/src/decode.h
+++ b/src/decode.h
@@ -50,6 +50,7 @@ typedef struct _DecoderControl {
volatile double seekWhere;
AudioFormat audioFormat;
Song *current_song;
+ Song *volatile next_song;
volatile float totalTime;
} DecoderControl;