diff --git a/src/ccodecstream.cpp b/src/ccodecstream.cpp old mode 100755 new mode 100644 index 7d8e0c8..b31228c --- a/src/ccodecstream.cpp +++ b/src/ccodecstream.cpp @@ -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; diff --git a/src/ctranscoder.cpp b/src/ctranscoder.cpp old mode 100755 new mode 100644 index 6b810c9..668b058 --- a/src/ctranscoder.cpp +++ b/src/ctranscoder.cpp @@ -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", diff --git a/src/main.h b/src/main.h old mode 100755 new mode 100644 index 7127e39..4212a3e --- a/src/main.h +++ b/src/main.h @@ -49,7 +49,7 @@ #define VERSION_MAJOR 2 #define VERSION_MINOR 4 -#define VERSION_REVISION 1 +#define VERSION_REVISION 2 // global ------------------------------------------------------