mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix potential NPE if source is released without being prepared
Issue: #2264 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=143550088
This commit is contained in:
parent
2512bd6e77
commit
ae30fe496a
1 changed files with 4 additions and 2 deletions
|
|
@ -94,8 +94,10 @@ public final class HlsMediaSource implements MediaSource,
|
|||
|
||||
@Override
|
||||
public void releaseSource() {
|
||||
playlistTracker.release();
|
||||
playlistTracker = null;
|
||||
if (playlistTracker != null) {
|
||||
playlistTracker.release();
|
||||
playlistTracker = null;
|
||||
}
|
||||
sourceListener = null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue