Skip to content

Commit

Permalink
transcode: add workaround to force T session re-init
Browse files Browse the repository at this point in the history
  • Loading branch information
emranemran committed Oct 6, 2023
1 parent a76bd68 commit 0f6ece2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions transcode/transcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ func transcodeSegment(
} else {
transcodeConf.ForceSessionReinit = false
}
// This is a temporary workaround that implements the same logic
// as the previous if block -- a new manifestID will force a
// T session re-init between segment at index=0 and index=1.
if int64(segment.Index) == 0 {
manifestID = manifestID + "_clip"
}

var tr clients.TranscodeResult
err := backoff.Retry(func() error {
Expand Down

0 comments on commit 0f6ece2

Please sign in to comment.