summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2016-11-03 09:54:39 -0700
committerMuller, Alexander (A.) <amulle19@ford.com>2016-11-03 09:54:39 -0700
commite7cf5428dbbb0f825e33b61c6d49ec70d8411180 (patch)
tree683407ebb19c4e7bf5559acc3fff205dbcc0c7e8
parent33d6b06a665a1343d09c5131b09782283040a0a3 (diff)
downloadsdl_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.m4
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,