aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTao Tao <tao.q.tao@intel.com>2010-09-30 16:48:48 -0700
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:37 -0700
commit32a658abd2af3681d553a55582f31321fff4dd58 (patch)
tree261155b659faf0c6444b920996dc2cac392060e6
parent8b104c541e45fa17e680dc22d6a0c4b74debd0b1 (diff)
downloadwrs_omxil_core-32a658abd2af3681d553a55582f31321fff4dd58.tar.gz
Bytestream switch support, initial IDR changes.
Change-Id: I0052b5092e3afe4a85c61a31b21850c3da50ebff
-rw-r--r--base/src/componentbase.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/base/src/componentbase.cpp b/base/src/componentbase.cpp
index bcd92d4..aff4a98 100644
--- a/base/src/componentbase.cpp
+++ b/base/src/componentbase.cpp
@@ -1854,13 +1854,12 @@ void ComponentBase::Work(void)
OMX_BUFFERHEADERTYPE *buffers[nr_ports];
buffer_retain_t retain[nr_ports];
OMX_U32 i;
- bool avail = false;
OMX_ERRORTYPE ret;
pthread_mutex_lock(&ports_block);
- avail = IsAllBufferAvailable();
- if (avail) {
+ while(IsAllBufferAvailable())
+ {
for (i = 0; i < nr_ports; i++) {
buffers[i] = ports[i]->PopBuffer();
retain[i] = BUFFER_RETAIN_NOT_RETAIN;