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

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

rtsp: fix StopBuffering condition in monitor

am: 0ab2569d

Change-Id: Ia4782d0da3eb19e447d3dda829372f0f1bcda229
parents 4cb9f26d 0ab2569d
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();
    }