Skip to content

Commit 05985a2

Browse files
Eric LaurentAndroid Git Automerger
authored andcommitted
am c15cf3d: Merge "stagefright: limit audio gap for looped playback" into ics-mr1
* commit 'c15cf3d286f3d63d141b73f639a5a61ddb028029': stagefright: limit audio gap for looped playback
2 parents 4ada9c6 + c15cf3d commit 05985a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

media/libstagefright/AwesomePlayer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,10 @@ void AwesomePlayer::postCheckAudioStatusEvent(int64_t delayUs) {
18411841
return;
18421842
}
18431843
mAudioStatusEventPending = true;
1844+
// Do not honor delay when looping in order to limit audio gap
1845+
if (mFlags & (LOOPING | AUTO_LOOPING)) {
1846+
delayUs = 0;
1847+
}
18441848
mQueue.postEventWithDelay(mCheckAudioStatusEvent, delayUs);
18451849
}
18461850

0 commit comments

Comments
 (0)