mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Add comment to explain why cancel exceptions are handled differently
PiperOrigin-RevId: 493260798
This commit is contained in:
parent
bb2c4c2eff
commit
00859a78fd
@ -334,6 +334,8 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||||||
TransformationException.createForMuxer(e, ERROR_CODE_MUXING_FAILED);
|
TransformationException.createForMuxer(e, ERROR_CODE_MUXING_FAILED);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
releaseTransformationException = TransformationException.createForUnexpected(e);
|
releaseTransformationException = TransformationException.createForUnexpected(e);
|
||||||
|
// cancelException is not reported through a listener. It is thrown in cancel(), as this
|
||||||
|
// method is blocking.
|
||||||
cancelException = e;
|
cancelException = e;
|
||||||
}
|
}
|
||||||
// Quit thread lazily so that all events that got triggered when releasing the AssetLoader are
|
// Quit thread lazily so that all events that got triggered when releasing the AssetLoader are
|
||||||
|
Loading…
x
Reference in New Issue
Block a user