diff --git a/src/audio/audiortp.cpp b/src/audio/audiortp.cpp index 62eb098abe788887528a15cb853a991524a0d9fd..de36176f475538d9b1572ba896f0bde68d4b569e 100644 --- a/src/audio/audiortp.cpp +++ b/src/audio/audiortp.cpp @@ -82,7 +82,7 @@ void AudioRtp::closeRtpSession () { ost::MutexLock m(_threadMutex); // This will make RTP threads finish. - // _debug("Stopping AudioRTP\n"); + _debug("Stopping AudioRTP\n"); try { delete _RTXThread; _RTXThread = 0; } catch(...) { @@ -388,7 +388,6 @@ AudioRtpRTX::run () { initBuffers(); int step; - try { // Init the session initAudioRtpSession(); step = (int) (_layerFrameSize * _codecSampleRate / 1000); @@ -425,15 +424,9 @@ AudioRtpRTX::run () { } //_debug("stop stream for audiortp loop\n"); audiolayer->stopStream(); - } catch(std::exception &e) { - _start.post(); - _debug("! ARTP: Stop %s\n", e.what()); - throw; - } catch(...) { _start.post(); - _debugException("* ARTP Action: Stop"); - throw; - } + _debug("- ARTP Action: Stop\n"); + } diff --git a/src/eventthread.cpp b/src/eventthread.cpp index b0378c57ec651746988f822f6206254ac6bec2bd..0ecc444b41b1f2bdc52167d6796859d4173bf983 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -54,6 +54,7 @@ void AudioThread::run (void) { while(!testCancel()) { _alsa->audioCallback(); + Thread::sleep(3); } }