mirror of
https://github.com/lkmio/lkm.git
synced 2025-11-01 02:52:42 +08:00
支持恢复上次推流的时间戳和序号
This commit is contained in:
@@ -223,6 +223,11 @@ func (s *BaseSink) Close() {
|
||||
// 从等待队列中删除Sink
|
||||
RemoveSinkFromWaitingQueue(s.SourceID, s.ID)
|
||||
go HookPlayDoneEvent(s)
|
||||
|
||||
// 等待队列为空, 不再保留推流源信息
|
||||
if !ExistSourceInWaitingQueue(s.SourceID) {
|
||||
streamEndInfoManager.Remove(s.SourceID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,7 +256,7 @@ func (s *BaseSink) StartStreaming(stream TransStream) error {
|
||||
}
|
||||
|
||||
func (s *BaseSink) StopStreaming(stream TransStream) {
|
||||
|
||||
s.SentPacketCount = 0
|
||||
}
|
||||
|
||||
func (s *BaseSink) GetConn() net.Conn {
|
||||
|
||||
Reference in New Issue
Block a user