diff options
Diffstat (limited to 'libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder')
-rw-r--r-- | libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java | 8 |
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); } } } |