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

Commit 0ab2569d authored by Robert Shih's avatar Robert Shih
Browse files

rtsp: fix StopBuffering condition in monitor

Stop buffering once there is sufficient data on all tracks.

Bug: 30230942
Change-Id: Iae484a4aab720c0bd70e0c122fd87e8237156019
(cherry picked from commit 91ea5718)
parent 78fe845d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -369,8 +369,11 @@ void NuPlayer::RTSPSource::onPollBuffering() {
        startBufferingIfNecessary();
    }

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

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