mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 08:36:43 +02:00
init active to false
This commit is contained in:
parent
b84762c1f5
commit
ce303d1ebb
3 changed files with 6 additions and 3 deletions
|
@ -26,7 +26,8 @@ using namespace std;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ControlSession::ControlSession(ControlMessageReceiver* receiver, std::shared_ptr<tcp::socket> socket) : messageReceiver_(receiver)
|
ControlSession::ControlSession(ControlMessageReceiver* receiver, std::shared_ptr<tcp::socket> socket) :
|
||||||
|
active_(false), messageReceiver_(receiver)
|
||||||
{
|
{
|
||||||
socket_ = socket;
|
socket_ = socket;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,8 @@ static AvahiEntryGroup *group;
|
||||||
static AvahiSimplePoll *simple_poll;
|
static AvahiSimplePoll *simple_poll;
|
||||||
static char* name;
|
static char* name;
|
||||||
|
|
||||||
PublishAvahi::PublishAvahi(const std::string& serviceName) : client(NULL), serviceName_(serviceName)
|
PublishAvahi::PublishAvahi(const std::string& serviceName) :
|
||||||
|
client(NULL), serviceName_(serviceName), active_(false)
|
||||||
{
|
{
|
||||||
group = NULL;
|
group = NULL;
|
||||||
simple_poll = NULL;
|
simple_poll = NULL;
|
||||||
|
|
|
@ -32,7 +32,8 @@ using namespace std;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PcmStream::PcmStream(PcmListener* pcmListener, const StreamUri& uri) : pcmListener_(pcmListener), uri_(uri), pcmReadMs_(20), state_(kIdle)
|
PcmStream::PcmStream(PcmListener* pcmListener, const StreamUri& uri) :
|
||||||
|
active_(false), pcmListener_(pcmListener), uri_(uri), pcmReadMs_(20), state_(kIdle)
|
||||||
{
|
{
|
||||||
EncoderFactory encoderFactory;
|
EncoderFactory encoderFactory;
|
||||||
if (uri_.query.find("codec") == uri_.query.end())
|
if (uri_.query.find("codec") == uri_.query.end())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue