Commit a68368a7 by xiongziliang

修复#109

parent 08386b95
...@@ -123,7 +123,7 @@ void RtspPlayer::play(bool isSSL,const string &strUrl, const string &strUser, co ...@@ -123,7 +123,7 @@ void RtspPlayer::play(bool isSSL,const string &strUrl, const string &strUser, co
auto ip = FindField(strUrl.data(), "://", "/"); auto ip = FindField(strUrl.data(), "://", "/");
if (!ip.size()) { if (!ip.size()) {
ip = FindField(strUrl.data(), "://", NULL); ip = split(FindField(strUrl.data(), "://", NULL),"?")[0];
} }
auto port = atoi(FindField(ip.data(), ":", NULL).data()); auto port = atoi(FindField(ip.data(), ":", NULL).data());
if (port <= 0) { if (port <= 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论