am 23b791cd: am d57fbe88: Fixed a race condition where some recording frames may not be released

* commit '23b791cd0f725d188b84dabfd9eeab4e3775b869':
  Fixed a race condition where some recording frames may not be released