---
title: HandleChangeCurrentStreamFormat
framework: VideoDriverKit
role: symbol
role_heading: Instance Method
platforms: [driverkit 27.0+]
path: videodriverkit/iouservideostream/handlechangecurrentstreamformat
---

# HandleChangeCurrentStreamFormat

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

## Declaration

```occ
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

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

## Discussion

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

## See Also

### Managing stream changes

- [HandleChangeStreamIsActive](videodriverkit/iouservideostream/handlechangestreamisactive.md)
- [DeviceSampleRateChanged](videodriverkit/iouservideostream/devicesampleratechanged.md)
