Skip to content

Commit

Permalink
Implemented SendQuitSignal
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromalta committed Feb 25, 2018
1 parent 79030af commit b7fafaf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ interface FFbinaryInterface {
*/
boolean killRunningProcesses();

/**
* Send quit signal for running process
*/
void sendQuitSignal();

/**
* Timeout for binary process, should be minimum of 10 seconds
*
Expand Down
6 changes: 6 additions & 0 deletions android-ffmpeg/src/main/java/nl/bravobit/ffmpeg/FFmpeg.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ public boolean killRunningProcesses() {
return status;
}

@Override
public void sendQuitSignal() {
ffmpegExecuteAsyncTask.sendQuitSignal();
}


@Override
public void setTimeout(long timeout) {
if (timeout >= MINIMUM_TIMEOUT) {
Expand Down

0 comments on commit b7fafaf

Please sign in to comment.