diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2016-03-10 15:41:18 -0500 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2016-03-10 15:41:18 -0500 |
commit | 752ce72fa86a42ad6a3e531adfc309672f95824d (patch) | |
tree | 4beff5c7c44adb8e939186e30054347abe7938f9 | |
parent | 878b405b3899df355a0c7929648955073e5c7288 (diff) | |
download | sdl_ios-752ce72fa86a42ad6a3e531adfc309672f95824d.tar.gz |
Fix StreamingMediaManager version check
-rw-r--r-- | SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m index a3b784f9b..1ef3a526f 100644 --- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m +++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLStreamingMediaManager.m @@ -63,7 +63,8 @@ NS_ASSUME_NONNULL_BEGIN #pragma mark - Streaming media lifecycle - (void)startVideoSessionWithStartBlock:(SDLStreamingStartBlock)startBlock { - if ([[[UIDevice currentDevice] systemVersion] floatValue] < 8.0) { + // If system version is less than 8.0 + if ([[[UIDevice currentDevice] systemVersion] compare:@"8.0" options:NSNumericSearch] == NSOrderedAscending) { NSAssert(NO, @"SDL Video Sessions can only be run on iOS 8+ devices"); startBlock(NO, [NSError errorWithDomain:SDLErrorDomainStreamingMediaVideo code:SDLSTreamingVideoErrorInvalidOperatingSystemVersion userInfo:nil]); |