mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 07:06:57 +08:00
修复rtmp推流结束后不释放内存问题
This commit is contained in:
@@ -499,6 +499,10 @@ func (s *PublishSource) doClose() {
|
||||
AddSinkToWaitingQueue(s.Id_, sink)
|
||||
}
|
||||
}
|
||||
|
||||
if SessionStateClose != sink.State() {
|
||||
sink.Flush()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user