Skip to content

Commit

Permalink
Merge pull request #193 from anudeepreddy/master
Browse files Browse the repository at this point in the history
release media object after setMedia
  • Loading branch information
razorRun authored Jan 5, 2024
2 parents df162e8 + 5e6d8ad commit dbbcff9
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 dbbcff9

Please sign in to comment.