commit | fc8b7c9ccf33b161f07e9bfcad28171c78d752ca | [log] [tgz] |
---|---|---|
author | James Dong <jdong@google.com> | Tue Dec 07 14:37:27 2010 -0800 |
committer | James Dong <jdong@google.com> | Mon Dec 13 10:34:17 2010 -0800 |
tree | 85ca1aad4cff89d74f72ed1e0ea7f65a655505b2 | |
parent | d1e039682082dc15583b64fafb2feeec4b0c9810 [diff] [blame] |
Yield the omx threads so that file writer threads have a chance to retrieve the output buffers once they become ready bug - 3252228 Change-Id: Iab7cf1c9a87cce7b814c63b42b21fcd6a7314b36
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index b954be7..43e4e97 100644 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp
@@ -2029,6 +2029,9 @@ mFilledBuffers.push_back(i); mBufferFilled.signal(); + if (mIsEncoder) { + sched_yield(); + } } break;