Fix multiple missing UTF-8 decoding.

This commit is contained in:
bruvzg
2022-01-06 11:34:10 +02:00
parent 1f0dc02649
commit c69e0d16bc
13 changed files with 22 additions and 22 deletions

View File

@@ -231,7 +231,7 @@ void CameraFeedOSX::set_device(AVCaptureDevice *p_device) {
// get some info
NSString *device_name = p_device.localizedName;
name = device_name.UTF8String;
name = String::utf8(device_name.UTF8String);
position = CameraFeed::FEED_UNSPECIFIED;
if ([p_device position] == AVCaptureDevicePositionBack) {
position = CameraFeed::FEED_BACK;