Browse Source

fix regression that caused a source to be closed after 10secs when sourceOnDemand is yes (#949)

pull/938/head v0.18.5
aler9 3 years ago
parent
commit
c5afa69174
  1. 4
      internal/core/path.go

4
internal/core/path.go

@ -427,6 +427,8 @@ func (pa *path) run() { @@ -427,6 +427,8 @@ func (pa *path) run() {
pa.onDemandStaticSourceReadyTimer.Stop()
pa.onDemandStaticSourceReadyTimer = newEmptyTimer()
pa.onDemandStaticSourceScheduleClose()
for _, req := range pa.describeRequestsOnHold {
req.res <- pathDescribeRes{
stream: pa.stream,
@ -438,8 +440,6 @@ func (pa *path) run() { @@ -438,8 +440,6 @@ func (pa *path) run() {
pa.handleReaderSetupPlayPost(req)
}
pa.setupPlayRequestsOnHold = nil
pa.onDemandStaticSourceScheduleClose()
}
req.res <- pathSourceStaticSetReadyRes{stream: pa.stream}

Loading…
Cancel
Save