|
|
|
@ -25,6 +25,7 @@
|
|
|
|
#include "main.h"
|
|
|
|
#include "main.h"
|
|
|
|
#include <string.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include "cvocodecs.h"
|
|
|
|
#include "cvocodecs.h"
|
|
|
|
|
|
|
|
#include <systemd/sd-daemon.h>
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// global object
|
|
|
|
// global object
|
|
|
|
@ -243,10 +244,12 @@ bool CVocodecs::Init(void)
|
|
|
|
if ( ok )
|
|
|
|
if ( ok )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::cout << "Codec interfaces initialized successfully : " << iNbCh << " channels available" << std::endl;
|
|
|
|
std::cout << "Codec interfaces initialized successfully : " << iNbCh << " channels available" << std::endl;
|
|
|
|
|
|
|
|
sd_notifyf(0, "STATUS=Codec interfaces initialized successfully : %i channels available", iNbCh);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::cout << "At least one codec interfaces failed to initialize : " << iNbCh << " channels availables" << std::endl;
|
|
|
|
std::cout << "At least one codec interfaces failed to initialize : " << iNbCh << " channels availables" << std::endl;
|
|
|
|
|
|
|
|
sd_notifyf(0, "At least one codec interfaces failed to initialize : %i channels availables", iNbCh);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// done
|
|
|
|
// done
|
|
|
|
return ok;
|
|
|
|
return ok;
|
|
|
|
|