mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-22 05:26:17 +02:00
Start PcmStream before connecting to Jack server
Otherwise clients will bail due to a zero-length PCM format header.
This commit is contained in:
parent
a7627f6c64
commit
ffe6287654
1 changed files with 5 additions and 0 deletions
|
@ -153,6 +153,11 @@ void JackStream::start()
|
||||||
{
|
{
|
||||||
LOG(TRACE, LOG_TAG) << "JackStream::start()\n";
|
LOG(TRACE, LOG_TAG) << "JackStream::start()\n";
|
||||||
|
|
||||||
|
// Need to start immediately, otherwise client will fail
|
||||||
|
// due to a zero-length pcm header message
|
||||||
|
tvEncodedChunk_ = std::chrono::steady_clock::now();
|
||||||
|
PcmStream::start();
|
||||||
|
|
||||||
boost::asio::post(strand_, [this] { tryConnect(); });
|
boost::asio::post(strand_, [this] { tryConnect(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue