From 6e8006c613c68f4bdfda4dbc0d8771da6f880993 Mon Sep 17 00:00:00 2001 From: David Colburn Date: Thu, 17 Oct 2024 15:30:12 -0400 Subject: [PATCH] init manifest --- pkg/config/manifest.go | 4 ---- pkg/config/pipeline.go | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/config/manifest.go b/pkg/config/manifest.go index 619f1a32..fa8642f9 100644 --- a/pkg/config/manifest.go +++ b/pkg/config/manifest.go @@ -81,10 +81,6 @@ func (p *PipelineConfig) initManifest() { AudioTrackID: p.AudioTrackID, VideoTrackID: p.VideoTrackID, } - - if p.GetSegmentConfig() != nil { - p.Manifest.Playlists = append(p.Manifest.Playlists, &Playlist{}) - } } } diff --git a/pkg/config/pipeline.go b/pkg/config/pipeline.go index eda9a444..30dfa1b2 100644 --- a/pkg/config/pipeline.go +++ b/pkg/config/pipeline.go @@ -381,7 +381,7 @@ func (p *PipelineConfig) Update(request *rpc.StartEgressRequest) error { } if err := p.updateDirectOutput(req.Track); err != nil { - return nil + return err } default: @@ -422,6 +422,7 @@ func (p *PipelineConfig) Update(request *rpc.StartEgressRequest) error { } } + p.initManifest() return nil }