diff options
author | Andreas Huber <andih@google.com> | 2012-05-21 11:12:40 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-05-21 11:12:40 -0700 |
commit | c9d1696d214d2175327067ccc1991bcb36976404 (patch) | |
tree | d8dca6340bbe00cd04d6dda4c1917e1affe9a516 /media/libmediaplayerservice/nuplayer/RTSPSource.cpp | |
parent | 8370c7ad4136ad7e0787d5a91ccfa3d63cfbe5cc (diff) | |
download | frameworks_av-c9d1696d214d2175327067ccc1991bcb36976404.zip frameworks_av-c9d1696d214d2175327067ccc1991bcb36976404.tar.gz frameworks_av-c9d1696d214d2175327067ccc1991bcb36976404.tar.bz2 |
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
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/RTSPSource.cpp')
-rw-r--r-- | media/libmediaplayerservice/nuplayer/RTSPSource.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
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 @@ void NuPlayer::RTSPSource::onMessageReceived(const sp<AMessage> &msg) { 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 = |