diff options
author | Andreas Huber <andih@google.com> | 2011-02-08 10:18:41 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-02-10 11:53:54 -0800 |
commit | 100a4408968b90e314526185d572c72ea4cc784a (patch) | |
tree | 3b911150d367d8083a4b1d157a217b85da859ab6 /media/libstagefright/rtsp/ARTPConnection.cpp | |
parent | fcac8fa9421f442f024018628a6042d7a14fbfb0 (diff) | |
download | frameworks_av-100a4408968b90e314526185d572c72ea4cc784a.zip frameworks_av-100a4408968b90e314526185d572c72ea4cc784a.tar.gz frameworks_av-100a4408968b90e314526185d572c72ea4cc784a.tar.bz2 |
Change timestamp handling in RTSP, remove unused, experimental, gtalk support
related-to-bug: 3216447
NTP timestamp handling is now done at a higher layer than before.
Change-Id: I9fb23f1335110ec59e534f9aa0fe6f6a6406dd52
Diffstat (limited to 'media/libstagefright/rtsp/ARTPConnection.cpp')
-rw-r--r-- | media/libstagefright/rtsp/ARTPConnection.cpp | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/media/libstagefright/rtsp/ARTPConnection.cpp b/media/libstagefright/rtsp/ARTPConnection.cpp index 5a1ea5c..601f569 100644 --- a/media/libstagefright/rtsp/ARTPConnection.cpp +++ b/media/libstagefright/rtsp/ARTPConnection.cpp @@ -169,12 +169,6 @@ void ARTPConnection::onMessageReceived(const sp<AMessage> &msg) { break; } - case kWhatFakeTimestamps: - { - onFakeTimestamps(); - break; - } - default: { TRESPASS(); @@ -461,12 +455,6 @@ status_t ARTPConnection::parseRTP(StreamInfo *s, const sp<ABuffer> &buffer) { buffer->setInt32Data(u16at(&data[2])); buffer->setRange(payloadOffset, size - payloadOffset); - if ((mFlags & kFakeTimestamps) && !source->timeEstablished()) { - source->timeUpdate(rtpTime, 0); - source->timeUpdate(rtpTime + 90000, 0x100000000ll); - CHECK(source->timeEstablished()); - } - source->processRTPPacket(buffer); return OK; @@ -592,9 +580,7 @@ status_t ARTPConnection::parseSR( sp<ARTPSource> source = findSource(s, id); - if ((mFlags & kFakeTimestamps) == 0) { - source->timeUpdate(rtpTime, ntpTime); - } + source->timeUpdate(rtpTime, ntpTime); return 0; } @@ -652,27 +638,5 @@ void ARTPConnection::onInjectPacket(const sp<AMessage> &msg) { } } -void ARTPConnection::fakeTimestamps() { - (new AMessage(kWhatFakeTimestamps, id()))->post(); -} - -void ARTPConnection::onFakeTimestamps() { - List<StreamInfo>::iterator it = mStreams.begin(); - while (it != mStreams.end()) { - StreamInfo &info = *it++; - - for (size_t j = 0; j < info.mSources.size(); ++j) { - sp<ARTPSource> source = info.mSources.valueAt(j); - - if (!source->timeEstablished()) { - source->timeUpdate(0, 0); - source->timeUpdate(0 + 90000, 0x100000000ll); - - mFlags |= kFakeTimestamps; - } - } - } -} - } // namespace android |