Skip to content

Commit

Permalink
Move src clearing outside of srcUri null validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rogercrunchyroll committed Jun 14, 2023
1 parent 5846a5e commit 9583f3a
Showing 1 changed file with 8 additions and 6 deletions.
Expand Up @@ -1914,14 +1914,16 @@ public void clearSrc() {
if (srcUri != null) {
player.stop();
player.clearMediaItems();
this.srcUri = null;
this.extension = null;
this.requestHeaders = null;
this.mediaDataSourceFactory = null;
ReactExoplayerView.offlineMediaSource = null;
ReactExoplayerView.offlineCacheDataSourceFactory = null;
clearResumePosition();
}

this.srcUri = null;
this.extension = null;
this.requestHeaders = null;
this.mediaDataSourceFactory = null;
ReactExoplayerView.offlineMediaSource = null;
ReactExoplayerView.offlineCacheDataSourceFactory = null;

releasePlayer();
}

Expand Down

0 comments on commit 9583f3a

Please sign in to comment.