修复windows下的编译问题

This commit is contained in:
xiongziliang
2018-03-05 10:41:15 +08:00
parent 3726721dd9
commit 03c04ea6a4
3 changed files with 5 additions and 9 deletions

View File

@@ -29,11 +29,12 @@
#include "MediaFile/MediaReader.h"
#include "Util/util.h"
#include "Rtsp/Rtsp.h"
#include "Network/sockutil.h"
using namespace ZL::Util;
using namespace ZL::Network;
using namespace ZL::MediaFile;
namespace ZL {
namespace Media {
@@ -165,13 +166,11 @@ void MediaInfo::parse(const string &url){
//无效vhost
m_vhost = DEFAULT_VHOST;
}else{
struct in_addr addr;
if(0 != inet_aton(m_vhost.data(),&addr)){
if(INADDR_NONE != inet_addr(m_vhost.data())){
//这是ip,未指定vhost;使用默认vhost
m_vhost = DEFAULT_VHOST;
}
}
}