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

Commit 78456cd7 authored by Hui (QRD) Yu's avatar Hui (QRD) Yu Committed by Steve Kondik
Browse files

Nuplayer: Fix no image or image will be delay issue

- Fix no image or image will be delay issue
  while using Wifi VOD RTSP program
- disallow open-ended NTP range for live streaming

Change-Id: I7b32fb2ef80f46557c6c76118783245f8488812f
parent 525c59e5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -470,8 +470,9 @@ void NuPlayer::RTSPSource::onMessageReceived(const sp<AMessage> &msg) {
                if (!info->mNPTMappingValid) {
                    // This is a live stream, we didn't receive any normal
                    // playtime mapping. We won't map to npt time.
                    source->queueAccessUnit(accessUnit);
                    break;
                    info->mRTPTime = rtpTime;
                    info->mNormalPlaytimeUs = 0ll;
                    info->mNPTMappingValid = true;
                }

                int64_t nptUs =
+0 −5
Original line number Diff line number Diff line
@@ -319,11 +319,6 @@ bool ASessionDescription::parseNTPRange(

    s = end + 1;  // skip the dash.

    if (*s == '\0') {
        *npt2 = FLT_MAX;  // open ended.
        return true;
    }

    if (!strncmp("now", s, 3)) {
        return false;  // no absolute end time available
    }