diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder_control.h | 4 | ||||
-rw-r--r-- | src/decoder_thread.c | 2 | ||||
-rw-r--r-- | src/player_control.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder_control.h b/src/decoder_control.h index d03c7a805..a4a6e266c 100644 --- a/src/decoder_control.h +++ b/src/decoder_control.h @@ -72,8 +72,8 @@ struct decoder_control { /** the format being sent to the music pipe */ struct audio_format out_audio_format; - struct song *current_song; - struct song *next_song; + const struct song *current_song; + const struct song *next_song; float total_time; /** the #music_chunk allocator */ diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 7308795c3..2f643d454 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -263,7 +263,7 @@ decoder_run_song(struct decoder_control *dc, static void decoder_run(struct decoder_control *dc) { - struct song *song = dc->next_song; + const struct song *song = dc->next_song; char *uri; if (song_is_file(song)) diff --git a/src/player_control.h b/src/player_control.h index c1fd52d81..02c04fda8 100644 --- a/src/player_control.h +++ b/src/player_control.h @@ -108,7 +108,7 @@ struct player_control { float total_time; float elapsed_time; struct song *volatile next_song; - struct song *errored_song; + const struct song *errored_song; volatile double seek_where; float cross_fade_seconds; double total_play_time; |