Skip to content

Commit

Permalink
reduce log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
iSchluff committed Dec 20, 2021
1 parent 0ba758f commit f93a69d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mpegts/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (p *Parser) ParsePSI(data []byte) (bool, error) {
case StreamTypeH264:
p.tspMap[elementaryPID] = &ElementaryStream{CodecParser: H264Parser{}}
default:
log.Println("Unknown streamtype", elementaryPID)
// log.Println("Unknown streamtype", elementaryPID)
}
}

Expand Down
4 changes: 2 additions & 2 deletions srt/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ func (s *ServerImpl) play(conn *srtConn) error {
buf, ok := <-sub

buffered := len(sub)
if buffered > 144 {
if buffered > cap(sub)/2 {
log.Printf("%s - %s - %d packets late in buffer\n", conn.address, conn.streamid.Name(), len(sub))
}

// Upstream closed, drop connection
if !ok {
log.Println("dropping", conn.address)
log.Printf("%s - %s dropped", conn.address, conn.streamid.Name())
return nil
}

Expand Down

0 comments on commit f93a69d

Please sign in to comment.