WA: Queue extra buffers on output port during reconfig if input EOS-ed

Some codecs may return input buffers before having them processed.
This causes a halt if we already signaled an EOS on the input
port.  For now keep submitting output meta buffers one at a time if
the input EOS-ed, but the output not yet.

Normally, we submit an output buffer for each input buffer that is
with the component (waiting to be processed).

Change-Id: I8a1251bfb504f40f1e4085a1e220bf9a4d0b05d9
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 11433909
Merge "WA: Queue extra buffers on output port during reconfig if input EOS-ed" into klp-dev
am 5ea5b020: Merge "WA: Queue extra buffers on output port during reconfig if input EOS-ed" into klp-dev

* commit '5ea5b020b311a68f513d4a40aca5551abc6a07d8':
  WA: Queue extra buffers on output port during reconfig if input EOS-ed
am 5bf2560c: Merge commit \'b2059ff384eee8ffb70a7ec8fc5570405201c734\' into HEAD

* commit '5bf2560ce9b70bee077e0c264ac06648f0f63acc':
am 11e71558: Merge "Fixed data offset at parsing IPMP Descriptors"

* commit '11e715589e0f3f96389d0eedab677369da680fd4':
  Fixed data offset at parsing IPMP Descriptors
am 90892d1b: Merge "Fix SIGABRT when playing mp4 file"

* commit '90892d1be84776f59a619ea4ef9ce51be5828ff8':
  Fix SIGABRT when playing mp4 file
AudioTrack: fix position callback after restore

When restoring an AudioTrack, the next position callback point
should not be modified and set ahead of current buffer head.
Otherwise, as frames are dropped, the new position is never reached
and an application relying on position callbacks to reload the buffer
would be stalled.

Bug: 11868603.
Change-Id: I93b2a311642a0c89944b78bcc0482d4ceed98ae4
am 92630351: Merge "NuPlayer: Use a software renderer when using software codecs"

* commit '92630351d265a61faae2dfe006a8bb330283aa7b':
  NuPlayer: Use a software renderer when using software codecs
am e2d617f5: Merge commit \'2381f06f374ee0cb8bca0edf5388394432b00e6d\' into HEAD

* commit 'e2d617f5ba7fb90f27b03e2593666b2c927e4dc9':
am 1c9ca7d1: Merge "Add "--bugreport" option to screenrecord"

* commit '1c9ca7d13e948af4633d5e5f8117d8c53ac684f6':
  Add "--bugreport" option to screenrecord
am a0e1c391: Merge changes Ia684fde5,I58fcb526

* commit 'a0e1c3918dd1356445df98e89dab6be2c8a78da3':
  Fix the help text
  screenrecord fixes
am a67c7653: Merge "Increase kFastTrackMultiplier from 1 to 2"

* commit 'a67c76538fff102cd44b2f38dd073df5f2a33605':
  Increase kFastTrackMultiplier from 1 to 2
am 9060d498: Merge "update offloaded audio track sampling rate"

* commit '9060d498be0c54d3caf84e2dbf1ba62516b3e76e':
  update offloaded audio track sampling rate
am 645e4397: Merge "AudioTrack: fix position callback after restore"

* commit '645e43977d3aabc5addab022d772accc32fd5bdc':
  AudioTrack: fix position callback after restore
am f81f7a52: Merge "audioflinger: check for condition before waiting"

* commit 'f81f7a52d4720f441197f75918d2b2c05d41ab45':
  audioflinger: check for condition before waiting
am 274cc85d: Merge "libstagefright: Delay release of wakelock in TimedEventQueue"

* commit '274cc85dcb255185838705a91dba00efa52bf436':
  libstagefright: Delay release of wakelock in TimedEventQueue
am 1f95555c: Merge "libeffects: do not use GNU old-style field designators"

* commit '1f95555c69219180f792ac742cc0e386496c29e6':
  libeffects: do not use GNU old-style field designators
am 1777ed30: Merge "stagefright: fix offloading HE-AAC sampling rate."

* commit '1777ed30bfb3b9c1edc037a1b5482d5ab8f28b9b':
  stagefright: fix offloading HE-AAC sampling rate.
am 8115f4b2: Merge "stagefright: do not offload LD-AAC decoding"

* commit '8115f4b206dbd04c620f062feb3c7785e2732ab3':
  stagefright: do not offload LD-AAC decoding
am 99044adc: Merge "Change M4OSA_ERR_CREATE to return unsigned integer."

* commit '99044adc6e209d31e9c5308d960e2bd5f6999f85':
  Change M4OSA_ERR_CREATE to return unsigned integer.