hls muxer: print only tracks that are effectively being converted

This commit is contained in:
aler9 2022-10-19 17:01:26 +02:00
parent 680b348902
commit c9de689a72

View File

@ -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() {