Skip to content

Commit

Permalink
init manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Oct 17, 2024
1 parent 426541f commit 6e8006c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions pkg/config/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion pkg/config/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -422,6 +422,7 @@ func (p *PipelineConfig) Update(request *rpc.StartEgressRequest) error {
}
}

p.initManifest()
return nil
}

Expand Down

0 comments on commit 6e8006c

Please sign in to comment.