am 5e28463d: Merge "Flush resets the count of played audio frames"
* commit '5e28463dc4d12802d173018c572f73e13ba50722': Flush resets the count of played audio frames
This commit is contained in:
@@ -508,6 +508,9 @@ status_t AudioPlayer::seekTo(int64_t time_us) {
|
||||
mReachedEOS = false;
|
||||
mSeekTimeUs = time_us;
|
||||
|
||||
// Flush resets the number of played frames
|
||||
mNumFramesPlayed = 0;
|
||||
|
||||
if (mAudioSink != NULL) {
|
||||
mAudioSink->flush();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user