summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2011-08-25 05:36:48 +0000
committerLiong Sauw Ming <ming@teluu.com>2011-08-25 05:36:48 +0000
commit7e07a630b16c4909e7472c9ec73908fcb2822c36 (patch)
tree511c80e7a3bc9e76b3242395642ca6de5347ad56 /pjmedia
parent8a9b27d26dcdb1fb32a134818e9eed25724f6267 (diff)
Fixed #1349:
It seems that QTCaptureSession's stopRunning only posts a message to stop the input worker thread so we need to make sure the message is processed if it is called from the main thread. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3722 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia-videodev/qt_dev.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia-videodev/qt_dev.m b/pjmedia/src/pjmedia-videodev/qt_dev.m
index 80546a5c..af0d2691 100644
--- a/pjmedia/src/pjmedia-videodev/qt_dev.m
+++ b/pjmedia/src/pjmedia-videodev/qt_dev.m
@@ -594,6 +594,8 @@ static pj_status_t qt_stream_stop(pjmedia_vid_dev_stream *strm)
if (stream->cap_session && [stream->cap_session isRunning])
[stream->cap_session stopRunning];
+ CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, false);
+
return PJ_SUCCESS;
}