diff options
author | Sunita Nadampalli <sunitan@ti.com> | 2016-02-19 10:35:57 -0600 |
---|---|---|
committer | Vishal Mahaveer <vishalm@ti.com> | 2016-02-22 16:54:05 -0600 |
commit | d401adfe9e56482d8bed2f3102c9b29d5cc2630e (patch) | |
tree | 5387f92c14340801599a7428904d27355dc74438 | |
parent | 411ed0b8c6449a9aae6edebd23f0795e506b28e3 (diff) | |
download | dra7xx-d401adfe9e56482d8bed2f3102c9b29d5cc2630e.tar.gz |
OMX: osal: fix WritetoFrontPipe api logic
The file write API is fixed to write the exact number of
bytes read.
Change-Id: I18d990aac67580540608f73159f60d04c63450ac
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 */ |