We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6feec3 commit 0510aafCopy full SHA for 0510aaf
LFLiveKit/publish/LFStreamingBuffer.m
@@ -62,9 +62,7 @@ - (void)appendObject:(LFFrame *)frame {
62
} else {
63
///< 排序
64
[self.sortList addObject:frame];
65
- NSArray *sortedSendQuery = [self.sortList sortedArrayUsingFunction:frameDataCompare context:NULL];
66
- [self.sortList removeAllObjects];
67
- [self.sortList addObjectsFromArray:sortedSendQuery];
+ [self.sortList sortUsingFunction:frameDataCompare context:nil];
68
/// 丢帧
69
[self removeExpireFrame];
70
/// 添加至缓冲区
0 commit comments