summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-01-25 10:41:35 -0800
committerAndreas Huber <andih@google.com>2010-01-25 11:24:26 -0800
commit213addfaf4b359c69da4e9b4490c511d116845bb (patch)
treea3a46a11cbb8b3a7ed2961a125ce712e52f0e490 /media/libstagefright/omx
parenta826028dc33a83538a2ac6bd13ca46a52de7a9be (diff)
downloadframeworks_av-213addfaf4b359c69da4e9b4490c511d116845bb.zip
frameworks_av-213addfaf4b359c69da4e9b4490c511d116845bb.tar.gz
frameworks_av-213addfaf4b359c69da4e9b4490c511d116845bb.tar.bz2
The qcom OMX video decoders do not allocate output buffer memory at the time OMX_AllocateBuffer is called, wait until we received the first FILL_BUFFER_DONE notification until we rely on the buffer data ptr.
Diffstat (limited to 'media/libstagefright/omx')
-rw-r--r--media/libstagefright/omx/OMX.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/omx/OMX.cpp b/media/libstagefright/omx/OMX.cpp
index 918d055..9ca060d 100644
--- a/media/libstagefright/omx/OMX.cpp
+++ b/media/libstagefright/omx/OMX.cpp
@@ -365,6 +365,7 @@ OMX_ERRORTYPE OMX::OnFillBufferDone(
msg.u.extended_buffer_data.flags = pBuffer->nFlags;
msg.u.extended_buffer_data.timestamp = pBuffer->nTimeStamp;
msg.u.extended_buffer_data.platform_private = pBuffer->pPlatformPrivate;
+ msg.u.extended_buffer_data.data_ptr = pBuffer->pBuffer;
mDispatcher->post(msg);