Add UpdatedAt to transcoding cache key

This commit is contained in:
Deluan 2020-07-28 17:16:01 -04:00
parent 0403ec2a07
commit d877928f11
1 changed files with 1 additions and 1 deletions

View File

@ -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) {