summaryrefslogtreecommitdiff
path: root/modules/camera
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-06 11:34:10 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-01-06 14:35:22 +0200
commitc69e0d16bc8adbe3d984f4f9953412986ed02791 (patch)
treec164078533bebe91a544618bf61c0a1045de886a /modules/camera
parent1f0dc026491539ed07f144e0aad29cdfeaa5f66d (diff)
Fix multiple missing UTF-8 decoding.
Diffstat (limited to 'modules/camera')
-rw-r--r--modules/camera/camera_osx.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/camera/camera_osx.mm b/modules/camera/camera_osx.mm
index 626cc3f285..391006bfc2 100644
--- a/modules/camera/camera_osx.mm
+++ b/modules/camera/camera_osx.mm
@@ -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;