summaryrefslogtreecommitdiffstats
path: root/sec_mm
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-07-28 13:53:30 -0700
committerJamie Gennis <jgennis@google.com>2011-07-28 14:23:44 -0700
commita6c80ca245dace759be6e0dc0ae4d6a6c09c7a84 (patch)
treebdf5d49a95b4a5bfadcb65d667090b30b0023261 /sec_mm
parentdd600c91fc1bc564ae62ef945d67436fe2fb0451 (diff)
downloaddevice_samsung_crespo-a6c80ca245dace759be6e0dc0ae4d6a6c09c7a84.zip
device_samsung_crespo-a6c80ca245dace759be6e0dc0ae4d6a6c09c7a84.tar.gz
device_samsung_crespo-a6c80ca245dace759be6e0dc0ae4d6a6c09c7a84.tar.bz2
Fix usage bits reported by OMX IL.
This change fixes the Gralloc usage bits that are reported to Stagefright. It removes the PROTECTED bit, which was not needed, and sets the SW_WRITE_OFTEN bit so that the decoder can lock and write to the buffers using the CPU. Change-Id: Id648cbef3451cea704b63a0bde9e5d2ba09f0ef0 Bug: 5091835
Diffstat (limited to 'sec_mm')
-rw-r--r--sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp b/sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp
index ea96e6f..d3ba70f 100644
--- a/sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp
+++ b/sec_mm/sec_omx/sec_osal/SEC_OSAL_Buffer.cpp
@@ -194,7 +194,7 @@ OMX_ERRORTYPE getAndroidNativeBuffer(OMX_HANDLETYPE hComponent, OMX_PTR Componen
pganbp = (GetAndroidNativeBufferUsageParams *)ComponentParameterStructure;
- pganbp->nUsage = GRALLOC_USAGE_PROTECTED; /* Need Change */
+ pganbp->nUsage = GRALLOC_USAGE_SW_WRITE_OFTEN;
ret = OMX_ErrorNone;
@@ -423,4 +423,3 @@ EXIT:
}
#endif
-