diff options
author | Chong Zhang <chz@google.com> | 2014-03-13 19:33:54 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-13 19:33:54 +0000 |
commit | 1e001f92e748de00a3e20effa464d59d75a746b3 (patch) | |
tree | 262695df260c33e683c4cb9b4d8eb486350a7616 | |
parent | f0fb921c0170fe3b8ebce8fbe3c133a99c6def9f (diff) | |
parent | 1c608ab33acab82d4a87f1abedcc99a623d1b53a (diff) | |
download | frameworks_av-1e001f92e748de00a3e20effa464d59d75a746b3.zip frameworks_av-1e001f92e748de00a3e20effa464d59d75a746b3.tar.gz frameworks_av-1e001f92e748de00a3e20effa464d59d75a746b3.tar.bz2 |
am 1c608ab3: save mGraphicBuffer pointer even when we\'re suspended
* commit '1c608ab33acab82d4a87f1abedcc99a623d1b53a':
save mGraphicBuffer pointer even when we're suspended
-rw-r--r-- | media/libstagefright/omx/GraphicBufferSource.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/omx/GraphicBufferSource.cpp b/media/libstagefright/omx/GraphicBufferSource.cpp index b8970ad..7492577 100644 --- a/media/libstagefright/omx/GraphicBufferSource.cpp +++ b/media/libstagefright/omx/GraphicBufferSource.cpp @@ -609,6 +609,12 @@ void GraphicBufferSource::onFrameAvailable() { BufferQueue::BufferItem item; status_t err = mBufferQueue->acquireBuffer(&item, 0); if (err == OK) { + // If this is the first time we're seeing this buffer, add it to our + // slot table. + if (item.mGraphicBuffer != NULL) { + ALOGV("fillCodecBuffer_l: setting mBufferSlot %d", item.mBuf); + mBufferSlot[item.mBuf] = item.mGraphicBuffer; + } mBufferQueue->releaseBuffer(item.mBuf, item.mFrameNumber, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, item.mFence); } |