Skip to content

Commit

Permalink
Fix streaming logic
Browse files Browse the repository at this point in the history
  • Loading branch information
huiping192 committed Jul 16, 2023
1 parent 7226cf0 commit 8a6d35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/HPLiveKit/Publish/StreamingBuffer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class StreamingBuffer {
///< 排序
sortList.append(frame)
sortList.sort { i, j in
return i.timestamp > j.timestamp
return i.timestamp < j.timestamp
}
/// 丢帧
removeExpireFrame()
Expand Down

0 comments on commit 8a6d35b

Please sign in to comment.