Skip to content

Commit

Permalink
Delete reference to disposed AudioTrack
Browse files Browse the repository at this point in the history
Fixes GitHub issue #114 where loading of a media source without an audio track fails after loading a media source with an audio track. The player tried to reuse the disposed AudioTrack instance from the previous source and ran into an exception.
  • Loading branch information
protyposis committed Feb 26, 2020
1 parent 1262ed3 commit 8f10fd4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ public void stop() {

stayAwake(false);

mAudioPlayback = null;

mCurrentState = State.STOPPED;
}

Expand Down

0 comments on commit 8f10fd4

Please sign in to comment.