mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-29 22:32:23 +08:00
全面支持ipv6
This commit is contained in:
@@ -66,8 +66,10 @@ void RtspPlayer::teardown(){
|
||||
|
||||
void RtspPlayer::play(const string &strUrl){
|
||||
RtspUrl url;
|
||||
if(!url.parse(strUrl)){
|
||||
onPlayResult_l(SockException(Err_other,StrPrinter << "illegal rtsp url:" << strUrl),false);
|
||||
try {
|
||||
url.parse(strUrl);
|
||||
} catch (std::exception &ex) {
|
||||
onPlayResult_l(SockException(Err_other, StrPrinter << "illegal rtsp url:" << ex.what()), false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user