diff options
author | Nicole Yarroch <nicole@livio.io> | 2021-04-09 14:52:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-09 14:52:08 -0400 |
commit | 65279123e37f3d090c68c262e3390606db8fee22 (patch) | |
tree | 302f7ca751a7e7e4bbd3798491795ea3ca2a348d | |
parent | 8640411280fc8952d546cda57ff018717dfb647b (diff) | |
download | sdl_ios-bugfix/issue_1950_overriding_default_custom_encoder_settings.tar.gz |
Apply suggestions from code review
bugfix/issue_1950_overriding_default_custom_encoder_settings
Fixed nil check
Co-authored-by: Joel Fischer <joeljfischer@gmail.com>
-rw-r--r-- | SmartDeviceLink/private/SDLStreamingVideoLifecycleManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/private/SDLStreamingVideoLifecycleManager.m b/SmartDeviceLink/private/SDLStreamingVideoLifecycleManager.m index c1b54b83e..1a052eee2 100644 --- a/SmartDeviceLink/private/SDLStreamingVideoLifecycleManager.m +++ b/SmartDeviceLink/private/SDLStreamingVideoLifecycleManager.m @@ -796,10 +796,10 @@ typedef void(^SDLVideoCapabilityResponseHandler)(SDLVideoStreamingCapability *_N if (!matchedVideoCapability.supportedFormats) { matchedVideoCapability.supportedFormats = videoCapabilityUpdated.supportedFormats; } - if (!matchedVideoCapability.maxBitrate) { + if (matchedVideoCapability.maxBitrate == nil) { matchedVideoCapability.maxBitrate = videoCapabilityUpdated.maxBitrate; } - if (!matchedVideoCapability.preferredFPS) { + if (matchedVideoCapability.preferredFPS == nil) { matchedVideoCapability.preferredFPS = videoCapabilityUpdated.preferredFPS; } |