Skip to content

Commit

Permalink
Fix boolean checks in isFFmpegCommandRunning and killRunningProcesses
Browse files Browse the repository at this point in the history
  • Loading branch information
gmxu committed Dec 24, 2014
1 parent f204e00 commit 5256516
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ public String getLibraryFFmpegVersion() {

@Override
public boolean isFFmpegCommandRunning() {
return ffmpegExecuteAsyncTask != null && ffmpegExecuteAsyncTask.isProcessCompleted();
return ffmpegExecuteAsyncTask != null && !ffmpegExecuteAsyncTask.isProcessCompleted();
}

@Override
public boolean killRunningProcesses() {
return Util.killAsync(ffmpegLoadLibraryAsyncTask) && Util.killAsync(ffmpegExecuteAsyncTask);
return Util.killAsync(ffmpegLoadLibraryAsyncTask) || Util.killAsync(ffmpegExecuteAsyncTask);
}

@Override
Expand Down

0 comments on commit 5256516

Please sign in to comment.