From c9de689a72e9f2531004d11d75f5706cf9080f8d Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:01:26 +0200 Subject: [PATCH] hls muxer: print only tracks that are effectively being converted --- internal/core/hls_muxer.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/internal/core/hls_muxer.go b/internal/core/hls_muxer.go index e2a7fd15..3775b5e6 100644 --- a/internal/core/hls_muxer.go +++ b/internal/core/hls_muxer.go @@ -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() {