summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2010-12-05 14:03:31 +0000
committerLiong Sauw Ming <ming@teluu.com>2010-12-05 14:03:31 +0000
commit08e7af79c559ba18fc5db4dbadb5c9fab210db3b (patch)
tree80f2d3ba521723892754ed9058cb056184f4dc98
parent02df27ae7d7b67421fb962d757b621414f8352bb (diff)
Misc (re #1151): Fixed crash in coreaudio_dev when there is no call during an interruption.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3386 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/src/pjmedia-audiodev/coreaudio_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c b/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c
index 064c2f4a..6727a2dd 100644
--- a/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c
+++ b/pjmedia/src/pjmedia-audiodev/coreaudio_dev.c
@@ -767,7 +767,8 @@ static void interruptionListener(void *inClientData, UInt32 inInterruption)
{
struct coreaudio_stream *strm = ((struct coreaudio_factory*)inClientData)->
stream;
- pj_assert(strm);
+ if (!strm)
+ return;
PJ_LOG(3, (THIS_FILE, "Session interrupted! --- %s ---",
inInterruption == kAudioSessionBeginInterruption ?