stopInternal should release MediaSource

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176763841
This commit is contained in:
olly 2017-11-23 05:43:38 -08:00 committed by Oliver Woodman
parent 2537e883d6
commit 874d1be852

View file

@ -766,7 +766,7 @@ import java.io.IOException;
}
private void stopInternal() {
resetInternal(/* releaseMediaSource= */ false, /* resetPosition= */ false);
resetInternal(/* releaseMediaSource= */ true, /* resetPosition= */ false);
loadControl.onStopped();
setState(Player.STATE_IDLE);
}