Skip to content

Commit 5256516

Browse files
committed
Fix boolean checks in isFFmpegCommandRunning and killRunningProcesses
1 parent f204e00 commit 5256516

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)