Skip to content

Commit

Permalink
hls muxer: print only tracks that are effectively being converted
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Oct 19, 2022
1 parent 680b348 commit c9de689
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/core/hls_muxer.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,16 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{})

m.path.readerStart(pathReaderStartReq{author: m})

var tracks []gortsplib.Track
if videoTrack != nil {
tracks = append(tracks, videoTrack)
}
if audioTrack != nil {
tracks = append(tracks, audioTrack)
}

m.log(logger.Info, "is converting into HLS, %s",
sourceTrackInfo(res.stream.tracks()))
sourceTrackInfo(tracks))

writerDone := make(chan error)
go func() {
Expand Down

0 comments on commit c9de689

Please sign in to comment.