Throw Exception if posting to application handler fails.
PiperOrigin-RevId: 568799683
This commit is contained in:
parent
c12fb67468
commit
4e10c41bcc
@ -399,23 +399,25 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ExportException finalException = exception;
|
ExportException finalException = exception;
|
||||||
applicationHandler.post(
|
checkState(
|
||||||
() ->
|
applicationHandler.post(
|
||||||
listener.onError(
|
() ->
|
||||||
processedInputsBuilder.build(),
|
listener.onError(
|
||||||
encoderFactory.getAudioEncoderName(),
|
processedInputsBuilder.build(),
|
||||||
encoderFactory.getVideoEncoderName(),
|
encoderFactory.getAudioEncoderName(),
|
||||||
finalException));
|
encoderFactory.getVideoEncoderName(),
|
||||||
|
finalException)));
|
||||||
} else {
|
} else {
|
||||||
if (releasedPreviously) {
|
if (releasedPreviously) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
applicationHandler.post(
|
checkState(
|
||||||
() ->
|
applicationHandler.post(
|
||||||
listener.onCompleted(
|
() ->
|
||||||
processedInputsBuilder.build(),
|
listener.onCompleted(
|
||||||
encoderFactory.getAudioEncoderName(),
|
processedInputsBuilder.build(),
|
||||||
encoderFactory.getVideoEncoderName()));
|
encoderFactory.getAudioEncoderName(),
|
||||||
|
encoderFactory.getVideoEncoderName())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user