Browse Source

修复,时间轴修复的日志输出具体修复时间的问题

Signed-off-by: allan716 <[email protected]>
allan716 3 years ago
parent
commit
91da530b8d
1 changed files with 2 additions and 3 deletions
  1. 2 3
      internal/logic/sub_timeline_fixer/SubTimelineFixerHelperEx.go

+ 2 - 3
internal/logic/sub_timeline_fixer/SubTimelineFixerHelperEx.go

@@ -58,7 +58,6 @@ func (s SubTimelineFixerHelperEx) Process(videoFileFullPath, srcSubFPath string)
 	var infoSrc *subparser.FileInfo
 	var pipeResultMax sub_timeline_fixer.PipeResult
 	bProcess := false
-	offSetTime := 0.0
 	bok := false
 	var ffmpegInfo *ffmpeg_helper.FFMPEGInfo
 	var err error
@@ -139,8 +138,8 @@ func (s SubTimelineFixerHelperEx) Process(videoFileFullPath, srcSubFPath string)
 		return err
 	}
 
-	log_helper.GetLogger().Infoln("Fix Offset:", offSetTime, srcSubFPath)
-	log_helper.GetLogger().Infoln("BackUp Org SubFile:", offSetTime, srcSubFPath+sub_timeline_fixer.BackUpExt)
+	log_helper.GetLogger().Infoln("Fix Offset:", pipeResultMax.GetOffsetTime(), srcSubFPath)
+	log_helper.GetLogger().Infoln("BackUp Org SubFile:", pipeResultMax.GetOffsetTime(), srcSubFPath+sub_timeline_fixer.BackUpExt)
 
 	return nil
 }