Skip to content

Commit

Permalink
Fix initial application of playback parameters
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192744823
  • Loading branch information
andrewlewis authored and ojw28 committed Apr 16, 2018
1 parent b4a3385 commit 22b8ab5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,10 @@ private void initialize() throws InitializationException {
}
}

// 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(
Expand Down

0 comments on commit 22b8ab5

Please sign in to comment.