From 7e07a630b16c4909e7472c9ec73908fcb2822c36 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Thu, 25 Aug 2011 05:36:48 +0000 Subject: 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 --- pjmedia/src/pjmedia-videodev/qt_dev.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pjmedia/src/pjmedia-videodev/qt_dev.m') 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; } -- cgit v1.2.3