mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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;
|
||||
}
|
||||
ExportException finalException = exception;
|
||||
checkState(
|
||||
applicationHandler.post(
|
||||
() ->
|
||||
listener.onError(
|
||||
processedInputsBuilder.build(),
|
||||
encoderFactory.getAudioEncoderName(),
|
||||
encoderFactory.getVideoEncoderName(),
|
||||
finalException));
|
||||
finalException)));
|
||||
} else {
|
||||
if (releasedPreviously) {
|
||||
return;
|
||||
}
|
||||
checkState(
|
||||
applicationHandler.post(
|
||||
() ->
|
||||
listener.onCompleted(
|
||||
processedInputsBuilder.build(),
|
||||
encoderFactory.getAudioEncoderName(),
|
||||
encoderFactory.getVideoEncoderName()));
|
||||
encoderFactory.getVideoEncoderName())));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user