1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-12-22 01:20:56 -05:00

version 2.4.2

updated ambed logging
This commit is contained in:
LX3JL 2021-07-06 10:18:58 +02:00
parent 264c78203c
commit 3c3367fee6
3 changed files with 7 additions and 4 deletions

3
src/ccodecstream.cpp Executable file → Normal file
View File

@ -102,6 +102,9 @@ bool CCodecStream::Init(uint16 uiPort)
ok = m_Socket.Open(uiPort);
if ( ok )
{
// init timers
m_TimeoutTimer.Now();
// start thread;
m_pThread = new std::thread(CCodecStream::Thread, this);
m_bConnected = true;

6
src/ctranscoder.cpp Executable file → Normal file
View File

@ -223,7 +223,7 @@ CCodecStream *CTranscoder::GetStream(CPacketStream *PacketStream, uint8 uiCodecI
{
if ( m_bStreamOpened )
{
std::cout << "ambed openstream ok" << std::endl;
std::cout << "ambed stream open on port " << m_PortOpenStream << std::endl;
// create stream object
stream = new CCodecStream(PacketStream, m_StreamidOpenStream, uiCodecIn, (uiCodecIn == CODEC_AMBEPLUS) ? CODEC_AMBE2PLUS : CODEC_AMBEPLUS);
@ -281,7 +281,7 @@ void CTranscoder::ReleaseStream(CCodecStream *stream)
m_Socket.Send(Buffer, m_Ip, TRANSCODER_PORT);
// display stats
if ( m_Streams[i]->GetPingMin() >= 0.0 )
//if ( m_Streams[i]->GetPingMin() >= 0.0 )
{
char sz[256];
sprintf(sz, "ambed stats (ms) : %.1f/%.1f/%.1f",
@ -290,7 +290,7 @@ void CTranscoder::ReleaseStream(CCodecStream *stream)
m_Streams[i]->GetPingMax() * 1000.0);
std::cout << sz << std::endl;
}
if ( m_Streams[i]->GetTimeoutPackets() > 0 )
//if ( m_Streams[i]->GetTimeoutPackets() > 0 )
{
char sz[256];
sprintf(sz, "ambed %d of %d packets timed out",

2
src/main.h Executable file → Normal file
View File

@ -49,7 +49,7 @@
#define VERSION_MAJOR 2
#define VERSION_MINOR 4
#define VERSION_REVISION 1
#define VERSION_REVISION 2
// global ------------------------------------------------------