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

Commit e3e13100 authored by Robert Shih's avatar Robert Shih Committed by android-build-merger
Browse files

rtsp: fix StopBuffering condition in monitor am: 0ab2569d

am: 9e722a20

Change-Id: I5aab73c2ab5e86d53442dbcab5b30b16b18d47db
parents 3a9a5fda 9e722a20
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -367,8 +367,11 @@ void NuPlayer::RTSPSource::onPollBuffering() {
        startBufferingIfNecessary();
    }

    if (overflow && mHandler != NULL) {
    if (haveSufficientDataOnAllTracks()) {
        stopBufferingIfNecessary();
    }

    if (overflow && mHandler != NULL) {
        mHandler->pause();
    }