mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-04 08:16:30 +08:00
feat: add stop subscribe api, show reasons for subscriber closure
This commit is contained in:
@@ -50,6 +50,9 @@ func (ts *MemoryTs) WritePESPacket(frame *mpegts.MpegtsPESFrame, packet mpegts.M
|
||||
var tsHeaderLength int
|
||||
for i := 0; len(pesBuffers) > 0; i++ {
|
||||
if bigLen < mpegts.TS_PACKET_SIZE {
|
||||
if i == 0 {
|
||||
ts.Recycle()
|
||||
}
|
||||
headerItem := ts.Get(mpegts.TS_PACKET_SIZE)
|
||||
ts.BLL.Push(headerItem)
|
||||
bwTsHeader = &headerItem.Value
|
||||
|
Reference in New Issue
Block a user