aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-02-02 18:04:24 -0800
committerJames Dong <jdong@google.com>2010-02-03 10:06:46 -0800
commit7d35df9558f695ee7d6f4b0c9370dcb85be616c7 (patch)
tree39066c4239256f93a219a2df751292f0db283bb8
parent2b65b6d8caee48f06e8ae14ea2c37f190891497c (diff)
downloadopencore-7d35df9558f695ee7d6f4b0c9370dcb85be616c7.tar.gz
URL is parsed incorrectly in OpenCore
OpenCore searches in an URL (after the protocal portion) for ":", and "/". Then, it uses the string after ":" to indicate the actual port number. However, when ":" comes after "/", ":" does not indicate the port number. bug - 2317216
-rw-r--r--protocols/rtsp_client_engine/src/pvrtsp_client_engine_node.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/rtsp_client_engine/src/pvrtsp_client_engine_node.cpp b/protocols/rtsp_client_engine/src/pvrtsp_client_engine_node.cpp
index 890a94c5b..1d4142690 100644
--- a/protocols/rtsp_client_engine/src/pvrtsp_client_engine_node.cpp
+++ b/protocols/rtsp_client_engine/src/pvrtsp_client_engine_node.cpp
@@ -2370,6 +2370,9 @@ bool PVRTSPEngineNode::parseURL(const char *aUrl)
if (clip_name != NULL)
{
*clip_name++ = '\0';
+ if (clip_name <= server_port_ptr) {
+ server_port_ptr = NULL; // ":" comes after "/", thus do not specify the port number
+ }
}
/* Locate the port number if provided. */