diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-11-03 09:54:39 -0700 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-11-03 09:54:39 -0700 |
commit | e7cf5428dbbb0f825e33b61c6d49ec70d8411180 (patch) | |
tree | 683407ebb19c4e7bf5559acc3fff205dbcc0c7e8 | |
parent | 33d6b06a665a1343d09c5131b09782283040a0a3 (diff) | |
download | sdl_ios-e7cf5428dbbb0f825e33b61c6d49ec70d8411180.tar.gz |
Added a fix for when a navigation app is attempting to connect to a non-navigation capable core that would cause a crash on RAI.
-rw-r--r-- | SmartDeviceLink/SDLStreamingMediaManager.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLStreamingMediaManager.m b/SmartDeviceLink/SDLStreamingMediaManager.m index 8bdf4f859..df61205f4 100644 --- a/SmartDeviceLink/SDLStreamingMediaManager.m +++ b/SmartDeviceLink/SDLStreamingMediaManager.m @@ -553,6 +553,10 @@ void sdl_videoEncoderOutputCallback(void *outputCallbackRefCon, void *sourceFram } - (void)sdl_updateScreenSizeFromDisplayCapabilities:(SDLDisplayCapabilities *)displayCapabilities { + if (displayCapabilities.graphicSupported.boolValue == false) { + [SDLDebugTool logInfo:@"Graphics are not supported. We are assuming screen size is also unavailable"]; + return; + } SDLImageResolution *resolution = displayCapabilities.screenParams.resolution; if (resolution != nil) { _screenSize = CGSizeMake(resolution.resolutionWidth.floatValue, |