Merge "stagefright: limit audio gap for looped playback" into ics-mr1
This commit is contained in:
@@ -1841,6 +1841,10 @@ void AwesomePlayer::postCheckAudioStatusEvent(int64_t delayUs) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mAudioStatusEventPending = true;
|
mAudioStatusEventPending = true;
|
||||||
|
// Do not honor delay when looping in order to limit audio gap
|
||||||
|
if (mFlags & (LOOPING | AUTO_LOOPING)) {
|
||||||
|
delayUs = 0;
|
||||||
|
}
|
||||||
mQueue.postEventWithDelay(mCheckAudioStatusEvent, delayUs);
|
mQueue.postEventWithDelay(mCheckAudioStatusEvent, delayUs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user