CameraHal: Check return frames count before waiting on condition

- The Thread responsible for retrieving free buffers
  from the tapout is possible to miss some incoming
  signals and wait while buffers are available in the
  ST. Solution is to count all outgoing buffers and
  not wait on the condition when buffers are available.

Change-Id: I31526dd334a08f52f0c6069cea847ae14e2cffbc
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
2 files changed