Skip to content

Commit ca14d9f

Browse files
Merge pull request cropsly#9 from gmxu/master
Fix boolean checks in isFFmpegCommandRunning and killRunningProcesses
2 parents f204e00 + 5256516 commit ca14d9f

File tree

1 file changed

+2
-2
lines changed
  • FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg

1 file changed

+2
-2
lines changed

FFmpegAndroid/src/main/java/com/github/hiteshsondhi88/libffmpeg/FFmpeg.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ public String getLibraryFFmpegVersion() {
9797

9898
@Override
9999
public boolean isFFmpegCommandRunning() {
100-
return ffmpegExecuteAsyncTask != null && ffmpegExecuteAsyncTask.isProcessCompleted();
100+
return ffmpegExecuteAsyncTask != null && !ffmpegExecuteAsyncTask.isProcessCompleted();
101101
}
102102

103103
@Override
104104
public boolean killRunningProcesses() {
105-
return Util.killAsync(ffmpegLoadLibraryAsyncTask) && Util.killAsync(ffmpegExecuteAsyncTask);
105+
return Util.killAsync(ffmpegLoadLibraryAsyncTask) || Util.killAsync(ffmpegExecuteAsyncTask);
106106
}
107107

108108
@Override

0 commit comments

Comments
 (0)