Fixed three issues
1. don't return INPUT buffers (OUTPUT part was fixed last week) back to omx client without
   making sure flush is completed while handling do flush request from omx client

2. don't send premature flush completion notification from omx component to omx client.
   We need to check whether all pending buffers (seaprately on INPUT and OUTPUT buffers)
   before the flush completion notification/event is sent out to omx client.

3. counter mis-calculation for the number of outstanding input buffers hold by the dsp.

bug - 2442379
3 files changed
tree: d2eec15e909a29c76272121047e4df438e3cbf2e
  1. dspbridge/
  2. libopencorehw/
  3. liboverlay/
  4. libstagefrighthw/
  5. omx/
  6. Android.mk