Merge "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;
|
mReachedEOS = false;
|
||||||
mSeekTimeUs = time_us;
|
mSeekTimeUs = time_us;
|
||||||
|
|
||||||
|
// Flush resets the number of played frames
|
||||||
|
mNumFramesPlayed = 0;
|
||||||
|
|
||||||
if (mAudioSink != NULL) {
|
if (mAudioSink != NULL) {
|
||||||
mAudioSink->flush();
|
mAudioSink->flush();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user