summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/rtsp/ARTPConnection.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-02-15 10:39:48 -0800
committerAndreas Huber <andih@google.com>2011-02-15 12:00:07 -0800
commitdc468c5f9d72ce54de0070493e9a23efb8907e06 (patch)
tree60bc0bbce4d9d765f13235d702443fecbe7e03ea /media/libstagefright/rtsp/ARTPConnection.cpp
parentf1958f9442bc937e1f8c8d9175901500b944b021 (diff)
downloadframeworks_av-dc468c5f9d72ce54de0070493e9a23efb8907e06.zip
frameworks_av-dc468c5f9d72ce54de0070493e9a23efb8907e06.tar.gz
frameworks_av-dc468c5f9d72ce54de0070493e9a23efb8907e06.tar.bz2
Work around several issues with non-compliant RTSP servers.
In this particular case these RTSP servers were implemented as local services, retransmitting live streams via a local RTSP server instance. They picked wrong rtp/rtcp port pairs (odd rtp port), blank lines in the session description, wrong case of the format description, relative base URLs... Change-Id: I63fa90ca2398f19e8b52c147248bd2c5c2372426 related-to-bug: 3452103
Diffstat (limited to 'media/libstagefright/rtsp/ARTPConnection.cpp')
-rw-r--r--media/libstagefright/rtsp/ARTPConnection.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/ARTPConnection.cpp b/media/libstagefright/rtsp/ARTPConnection.cpp
index 601f569..47de4e0 100644
--- a/media/libstagefright/rtsp/ARTPConnection.cpp
+++ b/media/libstagefright/rtsp/ARTPConnection.cpp
@@ -123,7 +123,7 @@ void ARTPConnection::MakePortPair(
struct sockaddr_in addr;
memset(addr.sin_zero, 0, sizeof(addr.sin_zero));
addr.sin_family = AF_INET;
- addr.sin_addr.s_addr = INADDR_ANY;
+ addr.sin_addr.s_addr = htonl(INADDR_ANY);
addr.sin_port = htons(port);
if (bind(*rtpSocket,
@@ -340,6 +340,8 @@ void ARTPConnection::onPollStreams() {
}
status_t ARTPConnection::receive(StreamInfo *s, bool receiveRTP) {
+ LOGV("receiving %s", receiveRTP ? "RTP" : "RTCP");
+
CHECK(!s->mIsInjected);
sp<ABuffer> buffer = new ABuffer(65536);