<!--
{
  "availability" : [
    "DriverKit: 27.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoDriverKit",
  "identifier" : "/documentation/VideoDriverKit/IOUserVideoStream/HandleChangeCurrentStreamFormat",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VideoDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserVideoStream@F@HandleChangeCurrentStreamFormat#*1$@N@VideoDriverKit@S@IOUserVideoStreamBasicDescription#"
  },
  "title" : "HandleChangeCurrentStreamFormat"
}
-->

# HandleChangeCurrentStreamFormat

The system calls this virtual method when the stream’s format changes.

```
virtual kern_return_t HandleChangeCurrentStreamFormat(const IOUserVideoStreamBasicDescription *in_format);
```

## Parameters

`in_format`

Pointer to a basic description, to be set on the stream.

## Return Value

`kIOReturnSuccess` on success. Upon success the stream’s format should be updated.

## Discussion

The default implementation calls `SetCurrentStreamFormat()` and returns `kIOReturnSuccess`.
Subclass and override this method to handle changing stream format and
return `kIOReturnSuccess` upon success.

---

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)