diff options
author | Daniel Levin <dendy@ti.com> | 2011-11-17 12:16:54 -0600 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-07-25 08:55:40 -0500 |
commit | 1b8d68c70b038c4d97dc67870ea5367611d660d3 (patch) | |
tree | c00db63b93812d508c527ae3eadce250fd313074 /camera/AppCallbackNotifier.cpp | |
parent | ef6033fc95355f5a405c0b89af606b29fb2d2b7c (diff) | |
download | hardware_ti_omap4-1b8d68c70b038c4d97dc67870ea5367611d660d3.zip hardware_ti_omap4-1b8d68c70b038c4d97dc67870ea5367611d660d3.tar.gz hardware_ti_omap4-1b8d68c70b038c4d97dc67870ea5367611d660d3.tar.bz2 |
CameraHAL: Fixed sending video frame in non metadata mode
Fixed attempt to reassign camera_memory_t data
pointer instead of copy buffer handle value into it.
Signed-off-by: Daniel Levin <dendy@ti.com>
Change-Id: Idd3f0d2eda2ba1814261891643b395979c5b2f76
Diffstat (limited to 'camera/AppCallbackNotifier.cpp')
-rw-r--r-- | camera/AppCallbackNotifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camera/AppCallbackNotifier.cpp b/camera/AppCallbackNotifier.cpp index 5e9d15d..b2e0e6f 100644 --- a/camera/AppCallbackNotifier.cpp +++ b/camera/AppCallbackNotifier.cpp @@ -1032,14 +1032,14 @@ void AppCallbackNotifier::notifyFrame() else { //TODO: Need to revisit this, should ideally be mapping the TILER buffer using mRequestMemory - camera_memory_t* fakebuf = mRequestMemory(-1, 4, 1, NULL); + camera_memory_t* fakebuf = mRequestMemory(-1, sizeof(buffer_handle_t), 1, NULL); if( (NULL == fakebuf) || ( NULL == fakebuf->data) || ( NULL == frame->mBuffer)) { CAMHAL_LOGEA("Error! One of the video buffers is NULL"); break; } - fakebuf->data = frame->mBuffer; + *reinterpret_cast<buffer_handle_t*>(fakebuf->data) = reinterpret_cast<buffer_handle_t>(frame->mBuffer); mDataCbTimestamp(frame->mTimestamp, CAMERA_MSG_VIDEO_FRAME, fakebuf, 0, mCallbackCookie); fakebuf->release(fakebuf); } |