We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8627643 commit ccbcd50Copy full SHA for ccbcd50
lib/src/main/java/com/otaliastudios/transcoder/internal/transcode/DefaultTranscodeEngine.kt
@@ -120,9 +120,13 @@ internal class DefaultTranscodeEngine(
120
} else if (completed) {
121
progress(1.0)
122
break
123
- } else if (!advanced) {
+ }
124
+
125
+ if (!advanced) {
126
Thread.sleep(WAIT_MS)
- } else if (++loop % PROGRESS_LOOPS == 0L) {
127
128
129
+ if (++loop % PROGRESS_LOOPS == 0L) {
130
val audioProgress = timer.progress.audio
131
val videoProgress = timer.progress.video
132
log.v("transcode(): got progress, video=$videoProgress audio=$audioProgress")
@@ -144,4 +148,4 @@ internal class DefaultTranscodeEngine(
144
148
private val WAIT_MS = 10L
145
149
private val PROGRESS_LOOPS = 10L
146
150
}
147
-}
151
+}
0 commit comments