Skip to content

Commit

Permalink
Add UpdatedAt to transcoding cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Jul 28, 2020
1 parent 0403ec2 commit d877928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/media_streamer.go
Expand Up @@ -40,7 +40,7 @@ type streamJob struct {
}

func (j *streamJob) String() string {
return fmt.Sprintf("%s.%d.%s", j.mf.ID, j.bitRate, j.format)
return fmt.Sprintf("%s.%s.%d.%s", j.mf.ID, j.mf.UpdatedAt.Format(time.RFC3339Nano), j.bitRate, j.format)
}

func (ms *mediaStreamer) NewStream(ctx context.Context, id string, reqFormat string, reqBitRate int) (*Stream, error) {
Expand Down

0 comments on commit d877928

Please sign in to comment.