Skip to content

Commit

Permalink
prepare: Fix check on transcoded profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Sep 12, 2022
1 parent ffbcb0b commit 9c540dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/livepeer/go-tools v0.0.0-20220805063103-76df6beb6506
github.com/livepeer/joy4 v0.1.2-0.20220210094601-95e4d28f5f07
github.com/livepeer/livepeer-data v0.4.14
github.com/livepeer/stream-tester v0.12.21
github.com/livepeer/stream-tester v0.12.22-0.20220912203630-834754b3932b
github.com/peterbourgon/ff v1.7.1
github.com/rabbitmq/amqp091-go v1.1.0
github.com/stretchr/testify v1.8.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,8 @@ github.com/livepeer/livepeer-data v0.4.14/go.mod h1:VIbJRdyH2Tas8EgLVkP79IPMepFD
github.com/livepeer/lpms v0.0.0-20220523122311-fc32eb80248c/go.mod h1:Hr/JhxxPDipOVd4ZrGYWrdJfpVF8/SEI0nNr2ctAlkM=
github.com/livepeer/m3u8 v0.11.1 h1:VkUJzfNTyjy9mqsgp5JPvouwna8wGZMvd/gAfT5FinU=
github.com/livepeer/m3u8 v0.11.1/go.mod h1:IUqAtwWPAG2CblfQa4SVzTQoDcEMPyfNOaBSxqHMS04=
github.com/livepeer/stream-tester v0.12.21 h1:B2JuhWdI9p36TS9mjqaqmwGs+mCnxSr19ujc6cU7CKU=
github.com/livepeer/stream-tester v0.12.21/go.mod h1:ldpj4E9rjl8TMvi8UVFRV2bmcknGL0wRPz/B7qKUXDk=
github.com/livepeer/stream-tester v0.12.22-0.20220912203630-834754b3932b h1:JFe8mFUUCah/b55E1tvfQjrD3ZJ5MzrfZ1+YTlZLTeE=
github.com/livepeer/stream-tester v0.12.22-0.20220912203630-834754b3932b/go.mod h1:ldpj4E9rjl8TMvi8UVFRV2bmcknGL0wRPz/B7qKUXDk=
github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
Expand Down
2 changes: 1 addition & 1 deletion task/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func Prepare(tctx *TaskContext, assetSpec *api.AssetSpec, file io.ReadSeekCloser
return "", fmt.Errorf("missing recording URL in stream")
}
duration := time.Duration(assetSpec.VideoSpec.DurationSec * float64(time.Second))
err = m3u8.Check(ctx, stream.RecordingURL, duration)
err = m3u8.Check(ctx, stream.RecordingURL, profiles, duration)
if err != nil {
return "", fmt.Errorf("bad m3u8 playlist generated: %w", err)
}
Expand Down

0 comments on commit 9c540dc

Please sign in to comment.