---
title: "VTMultiPassStorageClose(_:)"
framework: videotoolbox
role: symbol
role_heading: Function
path: "videotoolbox/vtmultipassstorageclose(_:)"
---

# VTMultiPassStorageClose(_:)

Ensures that any pending data is written to the multipass storage file and closes the file.

## Declaration

```swift
func VTMultiPassStorageClose(_ multiPassStorage: VTMultiPassStorage) -> OSStatus
```

## Parameters

- `multiPassStorage`: The multipass storage object to close.

## Discussion

Discussion After this function is called, all functions on the multipass storage object fail. It’s still necessary to release the object by calling CFRelease.
