Merge "Add RecordThread media.log and deferred deallocation"