Commit c44b60b
authored
whisper : call encoder_begin_callback before language auto-detect (#3936)
The language auto-detect path in whisper_full_with_state ran the encoder
without firing encoder_begin_callback, unlike the main transcription loop.
Callers that gate, observe, or abort whisper's encode through the callback
had no control over the auto-detection pass. Guard the auto-detect encode
with the callback the same way the main loop does.1 parent 6d0ed91 commit c44b60b
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6938 | 6938 | | |
6939 | 6939 | | |
6940 | 6940 | | |
| 6941 | + | |
| 6942 | + | |
| 6943 | + | |
| 6944 | + | |
| 6945 | + | |
| 6946 | + | |
| 6947 | + | |
6941 | 6948 | | |
6942 | 6949 | | |
6943 | 6950 | | |
| |||
0 commit comments