summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/rtsp/ARTPConnection.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-08-05 09:22:25 -0700
committerAndreas Huber <andih@google.com>2010-08-05 09:28:17 -0700
commitff53123821a3ec2e71fdb1a971ea2cbae3119826 (patch)
treeeb3f1beeaa35d012d2566567c119e825a3de0c47 /media/libstagefright/rtsp/ARTPConnection.cpp
parent9cf3ce33d626543bd749241d0280f3900d5b8ed3 (diff)
downloadframeworks_av-ff53123821a3ec2e71fdb1a971ea2cbae3119826.zip
frameworks_av-ff53123821a3ec2e71fdb1a971ea2cbae3119826.tar.gz
frameworks_av-ff53123821a3ec2e71fdb1a971ea2cbae3119826.tar.bz2
Better support for fake timestamps in RTP, H.263 video now also requests FIR.
Change-Id: I2385461887197fe4062d329086e0204f6d6620fc
Diffstat (limited to 'media/libstagefright/rtsp/ARTPConnection.cpp')
-rw-r--r--media/libstagefright/rtsp/ARTPConnection.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/media/libstagefright/rtsp/ARTPConnection.cpp b/media/libstagefright/rtsp/ARTPConnection.cpp
index 9abdab4..5bd306b 100644
--- a/media/libstagefright/rtsp/ARTPConnection.cpp
+++ b/media/libstagefright/rtsp/ARTPConnection.cpp
@@ -405,6 +405,14 @@ status_t ARTPConnection::parseRTP(StreamInfo *s, const sp<ABuffer> &buffer) {
buffer->setInt32Data(u16at(&data[2]));
buffer->setRange(payloadOffset, size - payloadOffset);
+#if IGNORE_RTCP_TIME
+ if (!source->timeEstablished()) {
+ source->timeUpdate(rtpTime, 0);
+ source->timeUpdate(rtpTime + 20, 0x100000000ll);
+ CHECK(source->timeEstablished());
+ }
+#endif
+
source->processRTPPacket(buffer);
return OK;
@@ -541,12 +549,6 @@ sp<ARTPSource> ARTPConnection::findSource(StreamInfo *info, uint32_t srcId) {
source = new ARTPSource(
srcId, info->mSessionDesc, info->mIndex, info->mNotifyMsg);
-#if IGNORE_RTCP_TIME
- // For H.263 gtalk to work...
- source->timeUpdate(0, 0);
- source->timeUpdate(30, 0x100000000ll);
-#endif
-
info->mSources.add(srcId, source);
} else {
source = info->mSources.valueAt(index);