use of org.fagu.fmv.ffmpeg.operation.ProgressReadLine in project fmv by f-agu.
the class FFExecutor method getErrReadLine.
/**
* @return
*/
protected ReadLine getErrReadLine() {
List<ReadLine> lines = new ArrayList<>();
if (progressReadLine != null) {
lines.add(progressReadLine);
}
ReadLine readLine = operation.getErrReadLine();
if (readLine != null) {
lines.add(readLine);
}
if (debug) {
lines.add(errDebugConsumer::accept);
}
if (!libLogReadLine.isEmpty()) {
lines.add(libLogReadLine);
}
if (!errReadLines.isEmpty()) {
lines.addAll(errReadLines);
}
if (!readLines.isEmpty()) {
lines.addAll(readLines);
}
return MultiReadLine.createWith(lines);
}
Aggregations