mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Surface player release timeouts
Also make sure the demo app doesn't crash when it happens. PiperOrigin-RevId: 490725959
This commit is contained in:
parent
82711630ed
commit
e12dd1ac5d
@ -453,7 +453,9 @@ public final class TransformerActivity extends AppCompatActivity {
|
|||||||
"transformationStopwatch",
|
"transformationStopwatch",
|
||||||
})
|
})
|
||||||
private void onTransformationError(TransformationException exception) {
|
private void onTransformationError(TransformationException exception) {
|
||||||
|
if (transformationStopwatch.isRunning()) {
|
||||||
transformationStopwatch.stop();
|
transformationStopwatch.stop();
|
||||||
|
}
|
||||||
informationTextView.setText(R.string.transformation_error);
|
informationTextView.setText(R.string.transformation_error);
|
||||||
progressViewGroup.setVisibility(View.GONE);
|
progressViewGroup.setVisibility(View.GONE);
|
||||||
debugFrame.removeAllViews();
|
debugFrame.removeAllViews();
|
||||||
|
@ -430,8 +430,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||||||
|
|
||||||
private void handleTransformationEnded(
|
private void handleTransformationEnded(
|
||||||
@Nullable TransformationException transformationException) {
|
@Nullable TransformationException transformationException) {
|
||||||
Util.postOrRun(
|
handler.post(
|
||||||
handler,
|
|
||||||
() -> {
|
() -> {
|
||||||
@Nullable TransformationException releaseException = null;
|
@Nullable TransformationException releaseException = null;
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user