mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00: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
8c91a31ced
commit
df2c9ce4ec
2 changed files with 4 additions and 3 deletions
|
|
@ -454,7 +454,9 @@ public final class TransformerActivity extends AppCompatActivity {
|
|||
"transformationStopwatch",
|
||||
})
|
||||
private void onTransformationError(TransformationException exception) {
|
||||
transformationStopwatch.stop();
|
||||
if (transformationStopwatch.isRunning()) {
|
||||
transformationStopwatch.stop();
|
||||
}
|
||||
informationTextView.setText(R.string.transformation_error);
|
||||
progressViewGroup.setVisibility(View.GONE);
|
||||
debugFrame.removeAllViews();
|
||||
|
|
|
|||
|
|
@ -430,8 +430,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
|||
|
||||
private void handleTransformationEnded(
|
||||
@Nullable TransformationException transformationException) {
|
||||
Util.postOrRun(
|
||||
handler,
|
||||
handler.post(
|
||||
() -> {
|
||||
@Nullable TransformationException releaseException = null;
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue