aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-03 21:44:12 +0100
committerMax Kellermann <max@duempel.org>2008-11-03 21:44:12 +0100
commitec6d26788a45825f3066de034f246bec8245b015 (patch)
tree41da8cfe0e7821de0ef3e69c7a601d3ea7ad56b4
parent863badd91ed25ed37a4d1a8bb1d03fdbf285a631 (diff)
downloadmpd-ec6d26788a45825f3066de034f246bec8245b015.tar.gz
mpd-ec6d26788a45825f3066de034f246bec8245b015.tar.xz
mpd-ec6d26788a45825f3066de034f246bec8245b015.zip
decoder: removed "volatile" modifier
The variable "next_song" is already protected by a memory barrier. "total_time" is not important for synchronization, and we don't need "volatile" here.
-rw-r--r--src/decoder_control.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder_control.h b/src/decoder_control.h
index df0908477..9729396eb 100644
--- a/src/decoder_control.h
+++ b/src/decoder_control.h
@@ -55,8 +55,8 @@ struct decoder_control {
struct audio_format out_audio_format;
struct song *current_song;
- struct song *volatile next_song;
- volatile float total_time;
+ struct song *next_song;
+ float total_time;
};
extern struct decoder_control dc;