mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Throw Exception if posting to application handler fails.
PiperOrigin-RevId: 568799683
This commit is contained in:
parent
c12fb67468
commit
4e10c41bcc
1 changed files with 15 additions and 13 deletions
|
|
@ -399,23 +399,25 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||
return;
|
||||
}
|
||||
ExportException finalException = exception;
|
||||
applicationHandler.post(
|
||||
() ->
|
||||
listener.onError(
|
||||
processedInputsBuilder.build(),
|
||||
encoderFactory.getAudioEncoderName(),
|
||||
encoderFactory.getVideoEncoderName(),
|
||||
finalException));
|
||||
checkState(
|
||||
applicationHandler.post(
|
||||
() ->
|
||||
listener.onError(
|
||||
processedInputsBuilder.build(),
|
||||
encoderFactory.getAudioEncoderName(),
|
||||
encoderFactory.getVideoEncoderName(),
|
||||
finalException)));
|
||||
} else {
|
||||
if (releasedPreviously) {
|
||||
return;
|
||||
}
|
||||
applicationHandler.post(
|
||||
() ->
|
||||
listener.onCompleted(
|
||||
processedInputsBuilder.build(),
|
||||
encoderFactory.getAudioEncoderName(),
|
||||
encoderFactory.getVideoEncoderName()));
|
||||
checkState(
|
||||
applicationHandler.post(
|
||||
() ->
|
||||
listener.onCompleted(
|
||||
processedInputsBuilder.build(),
|
||||
encoderFactory.getAudioEncoderName(),
|
||||
encoderFactory.getVideoEncoderName())));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue