mirror of
https://github.com/samsonjs/media.git
synced 2026-04-16 13:05:46 +00:00
Fix demo app crash when media pipe isn't loaded
The toast message about media pipe not loading needs to be shown on the main (UI) thread. PiperOrigin-RevId: 449199285
This commit is contained in:
parent
9345c1addc
commit
66b3527a22
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ public final class TransformerActivity extends AppCompatActivity {
|
|||
/* inputStreamName= */ "input_video",
|
||||
/* outputStreamName= */ "output_video");
|
||||
} catch (Exception e) {
|
||||
showToast(R.string.no_media_pipe_error);
|
||||
runOnUiThread(() -> showToast(R.string.no_media_pipe_error));
|
||||
throw new RuntimeException("Failed to load MediaPipe processor", e);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue