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

Commit 91ea5718 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
parent 3a7867c0
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();
    }