HLS client: write PMT at the beginning of every segment

This commit is contained in:
aler9 2021-04-22 23:27:55 +02:00
parent dee045f961
commit 3ec4ba6698
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ func newTSFile(videoTrack *gortsplib.Track, audioTrack *gortsplib.Track) *tsFile
t.mux.SetPCRPID(257)
}
// write PMT at the beginning of every segment
// so no packets are lost
t.mux.WriteTables()
return t
}