decoder_control: make the song objects const
They are just informational.
This commit is contained in:
parent
4dc25d3908
commit
59ffb5b7c1
@ -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,
|
|||||||
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 {
|
|||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user