Skip to content

Commit

Permalink
Fix nil deference when generating markers by ID (#4335)
Browse files Browse the repository at this point in the history
  • Loading branch information
DingDongSoLong4 authored Dec 1, 2023
1 parent 46e1715 commit d24b52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/manager/task_generate_markers.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (t *GenerateMarkersTask) generateSceneMarkers(ctx context.Context) {
}

func (t *GenerateMarkersTask) generateMarker(videoFile *models.VideoFile, scene *models.Scene, sceneMarker *models.SceneMarker) {
sceneHash := t.Scene.GetHash(t.fileNamingAlgorithm)
sceneHash := scene.GetHash(t.fileNamingAlgorithm)
seconds := int(sceneMarker.Seconds)

g := t.generator
Expand Down

0 comments on commit d24b52a

Please sign in to comment.