Fix initial application of playback parameters

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192744823
This commit is contained in:
andrewlewis 2018-04-13 03:18:19 -07:00 committed by Oliver Woodman
parent b4a3385a6f
commit 22b8ab5c09

View File

@ -466,8 +466,10 @@ public final class DefaultAudioSink implements AudioSink {
}
}
// The old playback parameters may no longer be applicable so try to reset them now.
setPlaybackParameters(playbackParameters);
playbackParameters =
canApplyPlaybackParameters
? applyPlaybackParameters(playbackParameters)
: PlaybackParameters.DEFAULT;
setupAudioProcessors();
audioTrackPositionTracker.setAudioTrack(