<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTMultiPassStorageClose(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTMultiPassStorageClose"
  },
  "title" : "VTMultiPassStorageClose(_:)"
}
-->

# VTMultiPassStorageClose(_:)

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

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

## Parameters

`multiPassStorage`

The multipass storage object to close.

## Discussion

After this function is called, all functions on the multipass storage object fail. It’s still necessary to release the object by calling <doc://com.apple.documentation/documentation/CoreFoundation/CFRelease>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)