Browse Source

Xcode: Silence nullability warning

v7.0.9
reuk 2 years ago
parent
commit
96fefd0abd
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_video/native/juce_CameraDevice_ios.h

+ 2
- 0
modules/juce_video/native/juce_CameraDevice_ios.h View File

@@ -493,10 +493,12 @@ private:
if (error != nil)
return nsStringToJuce (error.localizedDescription);
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wnullable-to-nonnull-conversion")
if (! [captureSession.get() canAddInput: input])
return "Could not add input to camera session.";
[captureSession.get() addInput: input];
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
return {};
}


Loading…
Cancel
Save