summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSho Amano <samano@xevo.com>2017-08-29 14:28:32 +0900
committerSho Amano <samano@xevo.com>2017-08-29 17:25:06 +0900
commit97e022637e08dc716508ba82c45e01cd9d1aa60e (patch)
tree34690dbbb59221fc446826d62523ba5d83d5d090
parent2b3e382b4098d2a2578805a7eccc670b0f86ba26 (diff)
downloadsdl_ios-97e022637e08dc716508ba82c45e01cd9d1aa60e.tar.gz
fix: properly convert NSMutableArray to NSArray
Reflecting code review comment.
-rw-r--r--SmartDeviceLink/SDLH264ByteStreamPacketizer.m2
-rw-r--r--SmartDeviceLink/SDLRTPH264Packetizer.m2
2 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLH264ByteStreamPacketizer.m b/SmartDeviceLink/SDLH264ByteStreamPacketizer.m
index 0e3fc9405..c229b0438 100644
--- a/SmartDeviceLink/SDLH264ByteStreamPacketizer.m
+++ b/SmartDeviceLink/SDLH264ByteStreamPacketizer.m
@@ -43,7 +43,7 @@ NS_ASSUME_NONNULL_BEGIN
}
[array addObject:elementaryStream];
- return array;
+ return [array copy];
}
@end
diff --git a/SmartDeviceLink/SDLRTPH264Packetizer.m b/SmartDeviceLink/SDLRTPH264Packetizer.m
index 266176bdf..9f01603ee 100644
--- a/SmartDeviceLink/SDLRTPH264Packetizer.m
+++ b/SmartDeviceLink/SDLRTPH264Packetizer.m
@@ -106,7 +106,7 @@ NS_ASSUME_NONNULL_BEGIN
}
}
- return rtpFrames;
+ return [rtpFrames copy];
}
/**