log error if not compiled with stdout

This commit is contained in:
badaix 2016-11-14 22:47:34 +01:00
parent 991c963b7d
commit fa65490192

View file

@ -78,5 +78,10 @@ void AirplayStream::onStderrMsg(const char* buffer, size_t n)
++port_;
params_ = params_wo_port_ + " --port=" + cpt::to_string(port_);
}
else if (logmsg.find("Invalid audio output specified") != string::npos)
{
logE << "shairport sync compiled without stdout audio backend\n";
logE << "build with: \"./configure --with-stdout --with-avahi --with-ssl=openssl --with-metadata\"\n";
}
}