From e10c287c93f2553f5b41ad16e5f9976ffb640bfe Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 30 Aug 2014 00:03:14 +0200 Subject: PlayerControl: make settings "const" --- src/PlayerControl.hxx | 4 ++-- test/run_output.cxx | 8 +++++--- 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 * -- cgit v1.2.3