Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): random android crash #3777

Merged
merged 10 commits into from
May 17, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -1677,8 +1677,10 @@ public void setSrc(final Uri uri, final long startPositionMs, final long cropSta

public void clearSrc() {
if (srcUri != null) {
player.stop();
player.clearMediaItems();
if (player != null) {
player.stop();
player.clearMediaItems();
}
this.srcUri = null;
this.startPositionMs = -1;
this.cropStartMs = -1;
Expand Down
Loading