Commit ae30fe49 by olly Committed by Oliver Woodman

Fix potential NPE if source is released without being prepared

Issue: #2264

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=143550088
parent 2512bd6e
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment