mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix initial application of playback parameters
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=192744823
This commit is contained in:
parent
b4a3385a6f
commit
22b8ab5c09
@ -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.
|
playbackParameters =
|
||||||
setPlaybackParameters(playbackParameters);
|
canApplyPlaybackParameters
|
||||||
|
? applyPlaybackParameters(playbackParameters)
|
||||||
|
: PlaybackParameters.DEFAULT;
|
||||||
setupAudioProcessors();
|
setupAudioProcessors();
|
||||||
|
|
||||||
audioTrackPositionTracker.setAudioTrack(
|
audioTrackPositionTracker.setAudioTrack(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user