aboutsummaryrefslogtreecommitdiffstats
path: root/libs/android-transcoder/src/main/java/net
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-02-01 21:14:02 +0100
committerChristian Schneppe <christian@pix-art.de>2018-02-01 21:14:02 +0100
commita13bd4a4d7f2628a41d48e5f37a660c1f760e452 (patch)
tree560a85fccae6ad0dd220eee145938f6de5b13722 /libs/android-transcoder/src/main/java/net
parent48d05d7045c40f94b7cfaacf2ea60ce4deed35fd (diff)
android transcoder: Remove swallowed exception in runPipelines
Diffstat (limited to 'libs/android-transcoder/src/main/java/net')
-rw-r--r--libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java b/libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java
index 64a1edef4..e56e307b1 100644
--- a/libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java
+++ b/libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java
@@ -180,7 +180,7 @@ public class MediaTranscoderEngine {
mExtractor.selectTrack(trackResult.mAudioTrackIndex);
}
- private void runPipelines() {
+ private void runPipelines() throws InterruptedException {
long loopCount = 0;
if (mDurationUs <= 0) {
double progress = PROGRESS_UNKNOWN;
@@ -199,11 +199,7 @@ public class MediaTranscoderEngine {
if (mProgressCallback != null) mProgressCallback.onProgress(progress);
}
if (!stepped) {
- try {
- Thread.sleep(SLEEP_TO_WAIT_TRACK_TRANSCODERS);
- } catch (InterruptedException e) {
- // nothing to do
- }
+ Thread.sleep(SLEEP_TO_WAIT_TRACK_TRANSCODERS);
}
}
}