[asterisk-scf-commits] asterisk-scf/release/media_rtp_pjmedia.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Thu Apr 14 09:35:15 CDT 2011
branch "master" has been updated
via 85553b42ab3952da5bc79b551aa1f1010b0c6f85 (commit)
from 70bd6106cdd277a8994b27d62c836deb2c83ed81 (commit)
Summary of changes:
src/RTPSource.cpp | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 85553b42ab3952da5bc79b551aa1f1010b0c6f85
Author: Mark Michelson <mmichelson at digium.com>
Date: Thu Apr 14 09:32:41 2011 -0500
Add try-catch block around RTPSink::write() operation.
When testing RTP state replication, this will throw an exception
on startup. This is harmless and just needs to be caught.
diff --git a/src/RTPSource.cpp b/src/RTPSource.cpp
index 7e0450b..9d45920 100644
--- a/src/RTPSource.cpp
+++ b/src/RTPSource.cpp
@@ -211,7 +211,14 @@ static void receiveRTP(void *userdata, void *packet, pj_ssize_t size)
frames.push_back(frame);
}
- source->mImpl->mSourceStateItem->mSink->write(frames);
+ try
+ {
+ source->mImpl->mSourceStateItem->mSink->write(frames);
+ }
+ catch (const Ice::Exception& ex)
+ {
+ lg(Error) << "Exception caught while attempting to write media to an RTP sink";
+ }
}
}
-----------------------------------------------------------------------
--
asterisk-scf/release/media_rtp_pjmedia.git
More information about the asterisk-scf-commits
mailing list