Commit 59ffb5b7 authored by Max Kellermann's avatar Max Kellermann

decoder_control: make the song objects const

They are just informational.
parent 4dc25d39
...@@ -72,8 +72,8 @@ struct decoder_control { ...@@ -72,8 +72,8 @@ struct decoder_control {
/** the format being sent to the music pipe */ /** the format being sent to the music pipe */
struct audio_format out_audio_format; struct audio_format out_audio_format;
struct song *current_song; const struct song *current_song;
struct song *next_song; const struct song *next_song;
float total_time; float total_time;
/** the #music_chunk allocator */ /** the #music_chunk allocator */
......
...@@ -263,7 +263,7 @@ decoder_run_song(struct decoder_control *dc, ...@@ -263,7 +263,7 @@ decoder_run_song(struct decoder_control *dc,
static void static void
decoder_run(struct decoder_control *dc) decoder_run(struct decoder_control *dc)
{ {
struct song *song = dc->next_song; const struct song *song = dc->next_song;
char *uri; char *uri;
if (song_is_file(song)) if (song_is_file(song))
......
...@@ -108,7 +108,7 @@ struct player_control { ...@@ -108,7 +108,7 @@ struct player_control {
float total_time; float total_time;
float elapsed_time; float elapsed_time;
struct song *volatile next_song; struct song *volatile next_song;
struct song *errored_song; const struct song *errored_song;
volatile double seek_where; volatile double seek_where;
float cross_fade_seconds; float cross_fade_seconds;
double total_play_time; double total_play_time;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment