mirror of
https://github.com/lkmio/lkm.git
synced 2025-09-26 19:21:14 +08:00
fix: 因sink推流失败, 删除sink时, 拉流计数为负数问题
This commit is contained in:
@@ -147,7 +147,7 @@ func (s *Sink) Close() {
|
||||
|
||||
func NewSink(id stream.SinkID, sourceId string, conn net.Conn, cb func(sdp string)) stream.Sink {
|
||||
return &Sink{
|
||||
stream.BaseSink{ID: id, SourceID: sourceId, Protocol: stream.TransStreamRtsp, Conn: conn},
|
||||
stream.BaseSink{ID: id, SourceID: sourceId, State: stream.SessionStateCreated, Protocol: stream.TransStreamRtsp, Conn: conn},
|
||||
nil,
|
||||
cb,
|
||||
}
|
||||
|
Reference in New Issue
Block a user