Skip to content

Commit

Permalink
15m segment queue (#770)
Browse files Browse the repository at this point in the history
* 15m segment queue

* images queue
  • Loading branch information
frostbyte73 authored Sep 9, 2024
1 parent 79afb24 commit 674c172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/pipeline/sink/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type imageUpdate struct {
}

func newImageSink(u uploader.Uploader, p *config.PipelineConfig, o *config.ImageConfig, callbacks *gstreamer.Callbacks) (*ImageSink, error) {
maxPendingUploads := 900 / o.CaptureInterval
return &ImageSink{
Uploader: u,
ImageConfig: o,
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipeline/sink/segments.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
)

const (
maxPendingUploads = 100
defaultLivePlaylistWindow = 5
)

Expand Down Expand Up @@ -91,6 +90,7 @@ func newSegmentSink(u uploader.Uploader, p *config.PipelineConfig, o *config.Seg
outputType = types.OutputTypeTS
}

maxPendingUploads := 900 / o.SegmentDuration
s := &SegmentSink{
Uploader: u,
SegmentConfig: o,
Expand Down

0 comments on commit 674c172

Please sign in to comment.