diff options
author | Andy McFadden <fadden@android.com> | 2013-07-11 14:40:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-07-11 14:40:58 +0000 |
commit | ceb1f0af56b5ff1f546438ec27321929956c705f (patch) | |
tree | effa22031f55a3260979ca2776a36e59c55fc634 /media | |
parent | 132a4fb88207075932d5dbb7970383ceb6405be7 (diff) | |
parent | 656e86250cd68f7f362c50a4bc92a865e9deacbe (diff) | |
download | frameworks_av-ceb1f0af56b5ff1f546438ec27321929956c705f.zip frameworks_av-ceb1f0af56b5ff1f546438ec27321929956c705f.tar.gz frameworks_av-ceb1f0af56b5ff1f546438ec27321929956c705f.tar.bz2 |
Merge "Pass additional arg to acquireBuffer calls."
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/SurfaceMediaSource.cpp | 2 | ||||
-rw-r--r-- | media/libstagefright/omx/GraphicBufferSource.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/media/libstagefright/SurfaceMediaSource.cpp b/media/libstagefright/SurfaceMediaSource.cpp index 71b6569..305e7e0 100644 --- a/media/libstagefright/SurfaceMediaSource.cpp +++ b/media/libstagefright/SurfaceMediaSource.cpp @@ -293,7 +293,7 @@ status_t SurfaceMediaSource::read( MediaBuffer **buffer, // wait here till the frames come in from the client side while (mStarted) { - status_t err = mBufferQueue->acquireBuffer(&item); + status_t err = mBufferQueue->acquireBuffer(&item, 0); if (err == BufferQueue::NO_BUFFER_AVAILABLE) { // wait for a buffer to be queued mFrameAvailableCondition.wait(mMutex); diff --git a/media/libstagefright/omx/GraphicBufferSource.cpp b/media/libstagefright/omx/GraphicBufferSource.cpp index b3a8463..b3167b5 100644 --- a/media/libstagefright/omx/GraphicBufferSource.cpp +++ b/media/libstagefright/omx/GraphicBufferSource.cpp @@ -251,7 +251,7 @@ bool GraphicBufferSource::fillCodecBuffer_l() { ALOGV("fillCodecBuffer_l: acquiring buffer, avail=%d", mNumFramesAvailable); BufferQueue::BufferItem item; - status_t err = mBufferQueue->acquireBuffer(&item); + status_t err = mBufferQueue->acquireBuffer(&item, 0); if (err == BufferQueue::NO_BUFFER_AVAILABLE) { // shouldn't happen ALOGW("fillCodecBuffer_l: frame was not available"); @@ -422,7 +422,7 @@ void GraphicBufferSource::onFrameAvailable() { ALOGW("onFrameAvailable: EOS is set, ignoring frame"); BufferQueue::BufferItem item; - status_t err = mBufferQueue->acquireBuffer(&item); + status_t err = mBufferQueue->acquireBuffer(&item, 0); if (err == OK) { mBufferQueue->releaseBuffer(item.mBuf, item.mFrameNumber, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, item.mFence); |