Commit ba5f3599 by tonihei Committed by Oliver Woodman

Send discontinuity at adjustments after shuffle/repeat mode changes.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=176749136
parent 1442c047
......@@ -476,8 +476,12 @@ import java.io.IOException;
// position of the playing period to make sure none of the removed period is played.
MediaPeriodId periodId = playingPeriodHolder.info.id;
long newPositionUs = seekToPeriodPosition(periodId, playbackInfo.positionUs);
playbackInfo = playbackInfo.fromNewPosition(periodId, newPositionUs,
if (newPositionUs != playbackInfo.positionUs) {
playbackInfo = playbackInfo.fromNewPosition(periodId, newPositionUs,
playbackInfo.contentPositionUs);
eventHandler.obtainMessage(MSG_POSITION_DISCONTINUITY, Player.DISCONTINUITY_REASON_INTERNAL,
0, playbackInfo).sendToTarget();
}
}
}
......
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