Skip to content

Commit 3fc1c2b

Browse files
committed
reset context.n so that NextSegment can be called for multiple Process calls
1 parent 999a7e0 commit 3fc1c2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bindings/go/pkg/whisper/context.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ func (context *context) Process(
237237
return err
238238
}
239239

240+
// Reset n so that more Segments can be available within NextSegment call
241+
context.n = 0
242+
240243
// Return success
241244
return nil
242245
}

0 commit comments

Comments
 (0)