forked from j62/ctbrec
Call onExit in waitFor
This commit is contained in:
parent
d8288b31c6
commit
a9d5888190
|
@ -106,7 +106,13 @@ public class FFmpeg {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int waitFor() throws InterruptedException {
|
public int waitFor() throws InterruptedException {
|
||||||
return process.waitFor();
|
int exitCode = process.waitFor();
|
||||||
|
try {
|
||||||
|
shutdown(exitCode);
|
||||||
|
} catch (IOException e) {
|
||||||
|
LOG.error("Error while shutting down FFmpeg process", e);
|
||||||
|
}
|
||||||
|
return exitCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Builder {
|
public static class Builder {
|
||||||
|
|
Loading…
Reference in New Issue