We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba45be5 commit cfd083aCopy full SHA for cfd083a
lib/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java
@@ -180,7 +180,7 @@ public void onDetermineOutputFormat() {
180
mExtractor.selectTrack(trackResult.mAudioTrackIndex);
181
}
182
183
- private void runPipelines() {
+ private void runPipelines() throws InterruptedException {
184
long loopCount = 0;
185
if (mDurationUs <= 0) {
186
double progress = PROGRESS_UNKNOWN;
@@ -199,11 +199,7 @@ private void runPipelines() {
199
if (mProgressCallback != null) mProgressCallback.onProgress(progress);
200
201
if (!stepped) {
202
- try {
203
- Thread.sleep(SLEEP_TO_WAIT_TRACK_TRANSCODERS);
204
- } catch (InterruptedException e) {
205
- // nothing to do
206
- }
+ Thread.sleep(SLEEP_TO_WAIT_TRACK_TRANSCODERS);
207
208
209
0 commit comments