Skip to content

Commit

Permalink
Check and cancel FFmpegExecuteAsyncTask if cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
gmxu committed Jan 9, 2015
1 parent ca14d9f commit d530369
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ private void checkAndUpdateProcess() throws TimeoutException, InterruptedExcepti
String line;
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getErrorStream()));
while ((line = reader.readLine()) != null) {
if (isCancelled()) {
return;
}

output += line+"\n";
publishProgress(line);
}
Expand Down

0 comments on commit d530369

Please sign in to comment.