From 377bb31c502fdd1f2434dc1fdc534db17733ebb2 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 3 Apr 2021 13:40:33 +0200 Subject: [PATCH] RTSP/RTMP source: fix error 'no one is publishing to path' that happens after some seconds, when sourceOnDemand is enabled (#334) --- internal/path/path.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/path/path.go b/internal/path/path.go index 074505f9..53c33c98 100644 --- a/internal/path/path.go +++ b/internal/path/path.go @@ -479,13 +479,13 @@ func (pa *Path) removeClient(c client.Client) { } func (pa *Path) onSourceSetReady() { - pa.sourceState = sourceStateReady - if pa.sourceState == sourceStateWaitingDescribe { pa.describeTimer.Stop() pa.describeTimer = newEmptyTimer() } + pa.sourceState = sourceStateReady + for _, req := range pa.describeRequests { req.Res <- client.DescribeRes{pa.sourceTracks.Write(), "", nil} //nolint:govet }