diff options
author | Sunita Nadampalli <sunitan@ti.com> | 2016-01-05 12:11:13 -0600 |
---|---|---|
committer | Sunita Nadampalli <sunitan@ti.com> | 2016-06-07 15:50:17 -0500 |
commit | 377f9f1fb1ee192edb17b4ac5ed6697f7ce79045 (patch) | |
tree | 58312d4258a77792b9e1a259fa8a47cd180f7af1 | |
parent | 5c93487d4aeed007a0265e4c411ff4fc035d52d9 (diff) | |
download | dra7xx-377f9f1fb1ee192edb17b4ac5ed6697f7ce79045.tar.gz |
OMX: osal: fix WritetoFrontPipe api logic
Change-Id: Ib4ceadde6d4a720b2edc449159f1ea21f55fe80b
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
-rwxr-xr-x | omx/osal/src/osal_pipes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/osal/src/osal_pipes.c b/omx/osal/src/osal_pipes.c index c639a18..967e580 100755 --- a/omx/osal/src/osal_pipes.c +++ b/omx/osal/src/osal_pipes.c @@ -203,7 +203,7 @@ OSAL_ERROR OSAL_WriteToFrontOfPipe(void *pPipe, void *pMessage, uint32_t size, i lSizeRead = read(pHandle->pfd[0], tempPtr, pHandle->totalBytesInPipe-size); /*Write back to pipe */ - lSizeWritten = write(pHandle->pfd[1], tempPtr, pHandle->totalBytesInPipe-size); + lSizeWritten = write(pHandle->pfd[1], tempPtr, lSizeRead); if (lSizeWritten != lSizeRead) { OSAL_Free(tempPtr); /*Update message count and size */ |