Skip to content

Commit c15cf3d

Browse files
Eric LaurentAndroid (Google) Code Review
authored andcommitted
Merge "stagefright: limit audio gap for looped playback" into ics-mr1
2 parents c894fb7 + 577d6cc commit c15cf3d

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)