2023-11-18 13:50:46 CST W46D6

This commit is contained in:
aggresss
2023-11-18 13:50:46 +08:00
parent 6702a75415
commit bbf62b975d
16 changed files with 158 additions and 62 deletions

View File

@@ -393,9 +393,6 @@ type AVDeviceInfoList C.struct_AVDeviceInfoList
// GetDevices gets `AVDeviceInfoList.devices` value.
func (dcl *AVDeviceInfoList) GetDevices() []*AVDeviceInfo {
if dcl.devices == nil {
return nil
}
return unsafe.Slice((**AVDeviceInfo)(unsafe.Pointer(dcl.devices)), dcl.nb_devices)
}