Module: sems Branch: 1.2 Commit: 22002c3d5cfa42bdd60eaff6d4228d1ede9c8cf0 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=22002c3d5cfa42bdd60eaff6d4228d1ede9c8cf0
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Wed Jul 14 12:51:44 2010 +0200 fix: error handling of local audio output thanks to Mark Sidell for the fix --- core/AmMediaProcessor.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/core/AmMediaProcessor.cpp b/core/AmMediaProcessor.cpp index c59b930..f21d9b8 100644 --- a/core/AmMediaProcessor.cpp +++ b/core/AmMediaProcessor.cpp @@ -373,7 +373,7 @@ void AmMediaProcessorThread::processAudio(unsigned int ts) // output is local - audio should go in local_out AmAudio* local_output = s->getLocalOutput(); if (local_output) { - if (local_output->put(ts,buffer,size)) { + if (local_output->put(ts,buffer,size) < 0) { postRequest(new SchedRequest(AmMediaProcessor::ClearSession,s)); } } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
