Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 701cac17 authored by Sridhar Vashist's avatar Sridhar Vashist Committed by Chris Elliott
Browse files

AwesomePlayer: Stop posting buffering events once at EOS



Stop posting buffering events once at end of stream to avoid
perpetually holding the 'TimedEventQueue' wakelock in libstagefright.

Change-Id: I3b8012886f2c27e830ce215b14090c35825635cd
Signed-off-by: default avatarSridhar Vashist <svashist@motorola.com>
parent 6c2af00e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -828,7 +828,8 @@ void AwesomePlayer::onBufferingUpdate() {
        }
    }

    if (mFlags & (PLAYING | PREPARING | CACHE_UNDERRUN)) {
    if ( ((mFlags & PLAYING) && !eos) ||
         (mFlags & (PREPARING | CACHE_UNDERRUN)) ) {
        postBufferingEvent_l();
    }
}