mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-01 03:07:33 +02:00
Small fixes and reformats
This commit is contained in:
parent
db9079c179
commit
d80c87351c
3 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ void AirplayStream::pipeReadLine()
|
||||||
boost::asio::async_read_until(*pipe_fd_, streambuf_pipe_, delimiter, [this, self, delimiter](const std::error_code& ec, std::size_t bytes_transferred) {
|
boost::asio::async_read_until(*pipe_fd_, streambuf_pipe_, delimiter, [this, self, delimiter](const std::error_code& ec, std::size_t bytes_transferred) {
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
LOG(ERROR, LOG_TAG) << "Error while reading from control socket: " << ec.message() << "\n";
|
LOG(ERROR, LOG_TAG) << "Error while reading from pipe: " << ec.message() << "\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ void AsioStream<ReadStream>::wait(Timer& timer, const std::chrono::duration<Rep,
|
||||||
{
|
{
|
||||||
auto self = this->shared_from_this();
|
auto self = this->shared_from_this();
|
||||||
timer.expires_after(duration);
|
timer.expires_after(duration);
|
||||||
timer.async_wait([self, handler = std::move(handler)](const boost::system::error_code& ec) {
|
timer.async_wait([ self, handler = std::move(handler) ](const boost::system::error_code& ec) {
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
LOG(ERROR, "AsioStream") << "Error during async wait: " << ec.message() << "\n";
|
LOG(ERROR, "AsioStream") << "Error during async wait: " << ec.message() << "\n";
|
||||||
|
|
|
@ -61,7 +61,7 @@ LibrespotStream::LibrespotStream(PcmListener* pcmListener, boost::asio::io_conte
|
||||||
if (!cache.empty())
|
if (!cache.empty())
|
||||||
params_ += " --cache \"" + cache + "\"";
|
params_ += " --cache \"" + cache + "\"";
|
||||||
if (!volume.empty())
|
if (!volume.empty())
|
||||||
params_ += " --initial-volume \"" + volume + "\"";
|
params_ += " --initial-volume " + volume;
|
||||||
if (!onevent.empty())
|
if (!onevent.empty())
|
||||||
params_ += " --onevent \"" + onevent + "\"";
|
params_ += " --onevent \"" + onevent + "\"";
|
||||||
if (normalize)
|
if (normalize)
|
||||||
|
|
Loading…
Add table
Reference in a new issue