mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-10 12:22:07 -08:00
hls: make sure to send entire TS segments to clients
This commit is contained in:
parent
f16acb937f
commit
c5ad06af9c
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ func (s *hlsServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
buf := make([]byte, 4096)
|
||||
for {
|
||||
n, err := res.Read(buf)
|
||||
if err != nil {
|
||||
if n == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue