diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-02-01 21:14:02 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-02-01 21:14:02 +0100 |
commit | a13bd4a4d7f2628a41d48e5f37a660c1f760e452 (patch) | |
tree | 560a85fccae6ad0dd220eee145938f6de5b13722 /libs/android-transcoder/src | |
parent | 48d05d7045c40f94b7cfaacf2ea60ce4deed35fd (diff) |
android transcoder: Remove swallowed exception in runPipelines
Diffstat (limited to 'libs/android-transcoder/src')
-rw-r--r-- | libs/android-transcoder/src/main/AndroidManifest.xml | 3 | ||||
-rw-r--r-- | libs/android-transcoder/src/main/java/net/ypresto/androidtranscoder/engine/MediaTranscoderEngine.java | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/libs/android-transcoder/src/main/AndroidManifest.xml b/libs/android-transcoder/src/main/AndroidManifest.xml index 8f4da3821..0bfa93402 100644 --- a/libs/android-transcoder/src/main/AndroidManifest.xml +++ b/libs/android-transcoder/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ -<manifest package="net.ypresto.androidtranscoder"> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="net.ypresto.androidtranscoder"> <application /> 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); } } } |