summaryrefslogtreecommitdiff
path: root/src/output/plugins/PulseOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@gmail.com>2016-08-15 10:02:22 +0200
committerMax Kellermann <max.kellermann@gmail.com>2016-08-15 10:02:22 +0200
commitac49043fbb4572f1262fea594bbd922b58b1863c (patch)
tree898d987802d7ceda60cab820b31d0314de480e34 /src/output/plugins/PulseOutputPlugin.cxx
parent37a7ca7f14194d1b20c7a981a1fc2e864986cbd5 (diff)
output/pulse: move variable declaration down
Diffstat (limited to 'src/output/plugins/PulseOutputPlugin.cxx')
-rw-r--r--src/output/plugins/PulseOutputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/plugins/PulseOutputPlugin.cxx b/src/output/plugins/PulseOutputPlugin.cxx
index 120bad090..a9a84bc24 100644
--- a/src/output/plugins/PulseOutputPlugin.cxx
+++ b/src/output/plugins/PulseOutputPlugin.cxx
@@ -545,7 +545,6 @@ pulse_output_open(AudioOutput *ao, AudioFormat &audio_format,
Error &error)
{
PulseOutput *po = (PulseOutput *)ao;
- pa_sample_spec ss;
assert(po->mainloop != nullptr);
@@ -579,6 +578,7 @@ pulse_output_open(AudioOutput *ao, AudioFormat &audio_format,
we just force MPD to send us everything as 16 bit */
audio_format.format = SampleFormat::S16;
+ pa_sample_spec ss;
ss.format = PA_SAMPLE_S16NE;
ss.rate = audio_format.sample_rate;
ss.channels = audio_format.channels;