Browse Source

Avoid unnecessary conversion (#349)

pull/350/head
Christian Muehlhaeuser 5 years ago committed by GitHub
parent
commit
21df28160a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/ffmpeg/fileWriterReceiverService.go

2
core/ffmpeg/fileWriterReceiverService.go

@ -89,7 +89,7 @@ func (s *FileWriterReceiverService) fileWritten(path string) { @@ -89,7 +89,7 @@ func (s *FileWriterReceiverService) fileWritten(path string) {
utils.StartPerformanceMonitor(performanceMonitorKey)
s.callbacks.SegmentWritten(path)
if averagePerformance != 0 && averagePerformance > float64(float64(config.Config.GetVideoSegmentSecondsLength())) {
if averagePerformance != 0 && averagePerformance > float64(config.Config.GetVideoSegmentSecondsLength()) {
if !_inWarningState {
log.Warnln("slow encoding for variant", index, "if this continues you may see buffering or errors. troubleshoot this issue by visiting https://owncast.online/docs/troubleshooting/")
_inWarningState = true

Loading…
Cancel
Save