File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/src/main/java/com/otaliastudios/transcoder/internal/transcode Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,8 @@ internal class DefaultTranscodeEngine(
117
117
log.v(" transcode(): executed step=$loop advanced=$advanced completed=$completed " )
118
118
if (Thread .interrupted()) {
119
119
throw InterruptedException ()
120
- } else if (completed) {
120
+ }
121
+ if (completed) {
121
122
progress(1.0 )
122
123
break
123
124
}
@@ -129,7 +130,7 @@ internal class DefaultTranscodeEngine(
129
130
}
130
131
}
131
132
132
- if (++ loop % PROGRESS_LOOPS == 0L ) {
133
+ if (advanced && ++ loop % PROGRESS_LOOPS == 0L ) {
133
134
val audioProgress = timer.progress.audio
134
135
val videoProgress = timer.progress.video
135
136
log.v(" transcode(): got progress, video=$videoProgress audio=$audioProgress " )
You can’t perform that action at this time.
0 commit comments