diff options
author | James Dong <jdong@google.com> | 2010-02-02 18:04:24 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-02-03 10:06:46 -0800 |
commit | 7d35df9558f695ee7d6f4b0c9370dcb85be616c7 (patch) | |
tree | 39066c4239256f93a219a2df751292f0db283bb8 | |
parent | 2b65b6d8caee48f06e8ae14ea2c37f190891497c (diff) | |
download | opencore-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.cpp | 3 |
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. */ |