diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-08-08 13:11:16 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-08 13:11:16 -0700 |
commit | 76d46c5a3637d6ac9e664c449839befbbd09c0a0 (patch) | |
tree | 1f7b6cda17f89f50f1447fd50f0a23c3264543c7 /libvideoeditor | |
parent | 93f902d58cd287e8dd046621824b7de7aa985d36 (diff) | |
parent | 4348cbcec6c3aec02af722d633ebda24f94dfcc8 (diff) | |
download | frameworks_av-76d46c5a3637d6ac9e664c449839befbbd09c0a0.zip frameworks_av-76d46c5a3637d6ac9e664c449839befbbd09c0a0.tar.gz frameworks_av-76d46c5a3637d6ac9e664c449839befbbd09c0a0.tar.bz2 |
am 4348cbce: am 67f694d6: Merge "Initialize pool\'s buffer pointers to null."
* commit '4348cbcec6c3aec02af722d633ebda24f94dfcc8':
Initialize pool's buffer pointers to null.
Diffstat (limited to 'libvideoeditor')
-rwxr-xr-x | libvideoeditor/vss/stagefrightshells/src/VideoEditorBuffer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvideoeditor/vss/stagefrightshells/src/VideoEditorBuffer.c b/libvideoeditor/vss/stagefrightshells/src/VideoEditorBuffer.c index 98919d2..f4cfa7c 100755 --- a/libvideoeditor/vss/stagefrightshells/src/VideoEditorBuffer.c +++ b/libvideoeditor/vss/stagefrightshells/src/VideoEditorBuffer.c @@ -53,6 +53,7 @@ M4OSA_ERR VIDEOEDITOR_BUFFER_allocatePool(VIDEOEDITOR_BUFFER_Pool** ppool, { M4OSA_ERR lerr = M4NO_ERROR; VIDEOEDITOR_BUFFER_Pool* pool; + M4OSA_UInt32 index; ALOGV("VIDEOEDITOR_BUFFER_allocatePool : ppool = 0x%x nbBuffers = %d ", ppool, nbBuffers); @@ -79,6 +80,11 @@ M4OSA_ERR VIDEOEDITOR_BUFFER_allocatePool(VIDEOEDITOR_BUFFER_Pool** ppool, goto VIDEOEDITOR_BUFFER_allocatePool_Cleanup; } + for (index = 0; index < nbBuffers; index++) + { + pool->pNXPBuffer[index].pData = M4OSA_NULL; + } + ALOGV("VIDEOEDITOR_BUFFER_allocatePool : Allocating Pool name buffer"); pool->poolName = M4OSA_NULL; pool->poolName = (M4OSA_Char*)M4OSA_32bitAlignedMalloc( |