Skip to content

Commit 277fbce

Browse files
committed
fix: uncomment something commented by accident
1 parent b890256 commit 277fbce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

worker/task/encode.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,8 @@ func (e *EncodeWorker) verifyResultJob(ctx context.Context, job *model.WorkTaskE
881881
diffDuration := encodedVideoParams.Format.DurationSeconds - sourceVideoParams.Format.DurationSeconds
882882
if diffDuration > 60 || diffDuration < -60 {
883883
err = fmt.Errorf("source File duration %f is diferent than encoded %f", sourceVideoParams.Format.DurationSeconds, encodedVideoParams.Format.DurationSeconds)
884-
//e.updateTaskStatus(job, model.FFMPEGSNotification, model.FailedNotificationStatus, err.Error())
885-
//return err
884+
e.updateTaskStatus(job, model.FFMPEGSNotification, model.FailedNotificationStatus, err.Error())
885+
return err
886886
}
887887
if encodedVideoSize > sourceVideoSize {
888888
err = fmt.Errorf("source File size %d bytes is less than encoded %d bytes", sourceVideoSize, encodedVideoSize)

0 commit comments

Comments
 (0)