Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cfd083a

Browse files
Remove swallowed exception in runPipelines
1 parent ba45be5 commit cfd083a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎lib/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public void onDetermineOutputFormat() {
180180
mExtractor.selectTrack(trackResult.mAudioTrackIndex);
181181
}
182182

183-
private void runPipelines() {
183+
private void runPipelines() throwsInterruptedException{
184184
long loopCount = 0;
185185
if (mDurationUs <= 0) {
186186
double progress = PROGRESS_UNKNOWN;
@@ -199,11 +199,7 @@ private void runPipelines() {
199199
if (mProgressCallback != null) mProgressCallback.onProgress(progress);
200200
}
201201
if (!stepped) {
202-
try {
203-
Thread.sleep(SLEEP_TO_WAIT_TRACK_TRANSCODERS);
204-
} catch (InterruptedException e) {
205-
// nothing to do
206-
}
202+
Thread.sleep(SLEEP_TO_WAIT_TRACK_TRANSCODERS);
207203
}
208204
}
209205
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /