Skip to content

Commit

Permalink
Merge pull request #53 from PinkFloyded/cancel-bug-fix
Browse files Browse the repository at this point in the history
Cancel bug fix
  • Loading branch information
ypresto authored Nov 27, 2017
2 parents f7d5712 + cfd083a commit e9c411c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.android.tools.build:gradle:2.3.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
buildToolsVersion '25.0.0'

defaultConfig {
applicationId "net.ypresto.androidtranscoder.example"
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Mar 09 14:43:12 JST 2015
#Thu Jun 08 12:40:11 IST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ apply plugin: 'bintray-release'

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
buildToolsVersion '25.0.2'

defaultConfig {
minSdkVersion 18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void onDetermineOutputFormat() {
mExtractor.selectTrack(trackResult.mAudioTrackIndex);
}

private void runPipelines() {
private void runPipelines() throws InterruptedException {
long loopCount = 0;
if (mDurationUs <= 0) {
double progress = PROGRESS_UNKNOWN;
Expand All @@ -199,11 +199,7 @@ private void runPipelines() {
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);
}
}
}
Expand Down

0 comments on commit e9c411c

Please sign in to comment.