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

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

DO NOT MERGE 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 9cc01515
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -826,7 +826,8 @@ void AwesomePlayer::onBufferingUpdate() {
        }
    }

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