OSDN Git Service

wfd_presentation_url should not include the port number according to wfd specs
authorAndreas Huber <andih@google.com>
Thu, 27 Sep 2012 21:27:42 +0000 (14:27 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 27 Sep 2012 21:31:24 +0000 (14:31 -0700)
Change-Id: I9c0e0174f6ab4cb24c6eafcaae853e432b3dffb9
related-to-bug: 7247490

media/libstagefright/wifi-display/source/WifiDisplaySource.cpp

index 286adfa..16c0f35 100644 (file)
@@ -497,10 +497,9 @@ status_t WifiDisplaySource::sendM4(int32_t sessionID) {
         "wfd_video_formats: "
         "78 00 02 02 00008000 00000000 00000000 00 0000 0000 00 none none\r\n"
         "wfd_audio_codecs: AAC 00000001 00\r\n"  // 2 ch AAC 48kHz
-        "wfd_presentation_URL: rtsp://%s:%d/wfd1.0/streamid=0 none\r\n"
+        "wfd_presentation_URL: rtsp://%s/wfd1.0/streamid=0 none\r\n"
         "wfd_client_rtp_ports: RTP/AVP/%s;unicast 19000 0 mode=play\r\n",
-        mClientInfo.mLocalIP.c_str(), mClientInfo.mLocalPort,
-        transportString.c_str());
+        mClientInfo.mLocalIP.c_str(), transportString.c_str());
 
     AString request = "SET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0\r\n";
     AppendCommonResponse(&request, mNextCSeq);