From 92163a2b0e1ad437964e7064e14126f351deb860 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Thu, 23 Dec 2021 13:09:58 +0100 Subject: [PATCH] hls: pring exact reason why a muxer is closed --- internal/core/hls_muxer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/core/hls_muxer.go b/internal/core/hls_muxer.go index 1d755672..ed10ab05 100644 --- a/internal/core/hls_muxer.go +++ b/internal/core/hls_muxer.go @@ -398,7 +398,7 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{}) if !m.hlsAlwaysRemux && time.Since(t) >= closeAfterInactivity { m.ringBuffer.Close() <-writerDone - return nil + return fmt.Errorf("not used anymore") } case err := <-writerDone: @@ -407,7 +407,7 @@ func (m *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{}) case <-innerCtx.Done(): m.ringBuffer.Close() <-writerDone - return nil + return fmt.Errorf("terminated") } } }