summaryrefslogtreecommitdiffstats
path: root/libvideoeditor/osal/src/M4OSA_Semaphore.c
diff options
context:
space:
mode:
authorShyam Pallapothu <shyamp@google.com>2011-04-21 09:48:41 -0700
committerShyam Pallapothu <shyamp@google.com>2011-04-21 09:48:41 -0700
commit694816d7291f17364502ac5d3319684a0b180860 (patch)
tree21a35b57a0eb154a49999407f466b5fa148d224b /libvideoeditor/osal/src/M4OSA_Semaphore.c
parent32ed3f4dad00f8a65f7e6b38402c70d5341c57eb (diff)
downloadframeworks_av-694816d7291f17364502ac5d3319684a0b180860.zip
frameworks_av-694816d7291f17364502ac5d3319684a0b180860.tar.gz
frameworks_av-694816d7291f17364502ac5d3319684a0b180860.tar.bz2
Fix for issue 4133431 "Remove OSAL layer" in engine part
Change-Id: I98f98691048a5afc6f691b0cc3cec92e458e8f44
Diffstat (limited to 'libvideoeditor/osal/src/M4OSA_Semaphore.c')
-rwxr-xr-xlibvideoeditor/osal/src/M4OSA_Semaphore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvideoeditor/osal/src/M4OSA_Semaphore.c b/libvideoeditor/osal/src/M4OSA_Semaphore.c
index a99b136..aeac0a9 100755
--- a/libvideoeditor/osal/src/M4OSA_Semaphore.c
+++ b/libvideoeditor/osal/src/M4OSA_Semaphore.c
@@ -77,7 +77,7 @@ M4OSA_ERR M4OSA_semaphoreOpen(M4OSA_Context* context,
*context = M4OSA_NULL;
- semaphoreContext = (M4OSA_SemaphoreContext*) M4OSA_malloc(
+ semaphoreContext = (M4OSA_SemaphoreContext*) M4OSA_32bitAlignedMalloc(
sizeof(M4OSA_SemaphoreContext), M4OSA_SEMAPHORE,
(M4OSA_Char*)"M4OSA_semaphoreOpen: semaphore context");
@@ -90,7 +90,7 @@ M4OSA_ERR M4OSA_semaphoreOpen(M4OSA_Context* context,
if (0 != sem_init(&semaphoreContext->semaphore, 0, initial_count))
{
- M4OSA_free((M4OSA_MemAddr32)semaphoreContext);
+ free(semaphoreContext);
M4OSA_DEBUG(M4ERR_CONTEXT_FAILED,
"M4OSA_semaphoreOpen: OS semaphore creation failed");
@@ -257,7 +257,7 @@ M4OSA_ERR M4OSA_semaphoreClose(M4OSA_Context context)
sem_destroy(&semaphoreContext->semaphore);
- M4OSA_free((M4OSA_MemAddr32)semaphoreContext);
+ free(semaphoreContext);
return M4NO_ERROR;
}