diff --git a/LFLiveKit/publish/LFStreamingBuffer.m b/LFLiveKit/publish/LFStreamingBuffer.m index 15ae4f35..1c6c5504 100755 --- a/LFLiveKit/publish/LFStreamingBuffer.m +++ b/LFLiveKit/publish/LFStreamingBuffer.m @@ -62,9 +62,7 @@ - (void)appendObject:(LFFrame *)frame { } else { ///< 排序 [self.sortList addObject:frame]; - NSArray *sortedSendQuery = [self.sortList sortedArrayUsingFunction:frameDataCompare context:NULL]; - [self.sortList removeAllObjects]; - [self.sortList addObjectsFromArray:sortedSendQuery]; + [self.sortList sortUsingFunction:frameDataCompare context:nil]; /// 丢帧 [self removeExpireFrame]; /// 添加至缓冲区