Skip to content

Commit

Permalink
ffmpeg: disable source playback if hls target url is not set
Browse files Browse the repository at this point in the history
In the transcode-api, an hls target may not be set in which case source
playback doesn't apply.
  • Loading branch information
emranemran committed Oct 10, 2023
1 parent 8e589ad commit 8dc484d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipeline/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ func (f *ffmpeg) HandleStartUploadJob(job *JobInfo) (*HandlerOutput, error) {
job.SegmentingTargetURL = job.SourceFile
}
job.SegmentingDone = time.Now()
f.sendSourcePlayback(job)
if job.HlsTargetURL != nil {
f.sendSourcePlayback(job)
}
job.ReportProgress(clients.TranscodeStatusPreparingCompleted, 1)

// Transcode Beginning
Expand Down

0 comments on commit 8dc484d

Please sign in to comment.