For an RTSP live stream we won't map rtp time to normal play time,
since we don't have the information necessary.
Change-Id: I3119fcc061c4b6756a69c6139ffdf013d806fee1
related-to-bug: 6528548
diff --git a/media/libmediaplayerservice/nuplayer/RTSPSource.cpp b/media/libmediaplayerservice/nuplayer/RTSPSource.cpp
index a138be8..c910488 100644
--- a/media/libmediaplayerservice/nuplayer/RTSPSource.cpp
+++ b/media/libmediaplayerservice/nuplayer/RTSPSource.cpp
@@ -276,14 +276,9 @@
if (!info->mNPTMappingValid) {
// This is a live stream, we didn't receive any normal
- // playtime mapping. Assume the first packets correspond
- // to time 0.
-
- ALOGV("This is a live stream, assuming time = 0");
-
- info->mRTPTime = rtpTime;
- info->mNormalPlaytimeUs = 0ll;
- info->mNPTMappingValid = true;
+ // playtime mapping. We won't map to npt time.
+ source->queueAccessUnit(accessUnit);
+ break;
}
int64_t nptUs =