aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-30 00:03:14 +0200
committerMax Kellermann <max@duempel.org>2014-08-30 00:28:02 +0200
commite10c287c93f2553f5b41ad16e5f9976ffb640bfe (patch)
tree726884f6ca2e42d36aa4bb2db0462dff7c21ede9
parentce42d53a0910cb5a581cd57e30efd74eb5420288 (diff)
downloadmpd-e10c287c93f2553f5b41ad16e5f9976ffb640bfe.tar.gz
mpd-e10c287c93f2553f5b41ad16e5f9976ffb640bfe.tar.xz
mpd-e10c287c93f2553f5b41ad16e5f9976ffb640bfe.zip
PlayerControl: make settings "const"
-rw-r--r--src/PlayerControl.hxx4
-rw-r--r--test/run_output.cxx8
2 files changed, 7 insertions, 5 deletions
diff --git a/src/PlayerControl.hxx b/src/PlayerControl.hxx
index 2487eacff..4d06a1827 100644
--- a/src/PlayerControl.hxx
+++ b/src/PlayerControl.hxx
@@ -98,9 +98,9 @@ struct PlayerControl {
MultipleOutputs &outputs;
- unsigned buffer_chunks;
+ const unsigned buffer_chunks;
- unsigned int buffered_before_play;
+ const unsigned buffered_before_play;
/**
* The handle of the player thread.
diff --git a/test/run_output.cxx b/test/run_output.cxx
index 15383fd2a..e6c11669d 100644
--- a/test/run_output.cxx
+++ b/test/run_output.cxx
@@ -55,9 +55,11 @@ filter_plugin_by_name(gcc_unused const char *name)
PlayerControl::PlayerControl(PlayerListener &_listener,
MultipleOutputs &_outputs,
- gcc_unused unsigned _buffer_chunks,
- gcc_unused unsigned _buffered_before_play)
- :listener(_listener), outputs(_outputs) {}
+ unsigned _buffer_chunks,
+ unsigned _buffered_before_play)
+ :listener(_listener), outputs(_outputs),
+ buffer_chunks(_buffer_chunks),
+ buffered_before_play(_buffered_before_play) {}
PlayerControl::~PlayerControl() {}
static AudioOutput *