mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 07:06:57 +08:00
支持rtmp拉流
This commit is contained in:
@@ -82,6 +82,10 @@ func (r *ringBuffer) Size() int {
|
||||
}
|
||||
|
||||
func (r *ringBuffer) All() ([]interface{}, []interface{}) {
|
||||
if r.size == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
if r.head < r.tail {
|
||||
return r.data[r.head:], r.data[:r.tail]
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user