Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
59ffb5b7
Commit
59ffb5b7
authored
Nov 03, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder_control: make the song objects const
They are just informational.
parent
4dc25d39
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
decoder_control.h
src/decoder_control.h
+2
-2
decoder_thread.c
src/decoder_thread.c
+1
-1
player_control.h
src/player_control.h
+1
-1
No files found.
src/decoder_control.h
View file @
59ffb5b7
...
@@ -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 */
...
...
src/decoder_thread.c
View file @
59ffb5b7
...
@@ -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
))
...
...
src/player_control.h
View file @
59ffb5b7
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment