mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-07 08:30:58 +08:00
2023-11-18 13:50:46 CST W46D6
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user