Skip to content

Commit

Permalink
release media object after setMedia
Browse files Browse the repository at this point in the history
  • Loading branch information
anudeepreddy authored Dec 23, 2023
1 parent df162e8 commit 5e6d8ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ private void createPlayer(boolean autoplayResume, boolean isResume) {
}
mVideoInfo = null;
mMediaPlayer.setMedia(m);
m.release();
mMediaPlayer.setScale(0);
if (_subtitleUri != null) {
mMediaPlayer.addSlave(Media.Slave.Type.Subtitle, _subtitleUri, true);
Expand Down

0 comments on commit 5e6d8ad

Please sign in to comment.