完善网络相关信息
This commit is contained in:
parent
26cfb5ae73
commit
1c03acbdb9
|
|
@ -129,11 +129,11 @@ bool RtpProcess::inputRtp(const Socket::Ptr &sock, const char *data, int data_le
|
||||||
//检查源是否合法
|
//检查源是否合法
|
||||||
if(!_addr){
|
if(!_addr){
|
||||||
_addr = new struct sockaddr;
|
_addr = new struct sockaddr;
|
||||||
|
_sock = sock;
|
||||||
memcpy(_addr,addr, sizeof(struct sockaddr));
|
memcpy(_addr,addr, sizeof(struct sockaddr));
|
||||||
DebugP(this) << "bind to address:" << printAddress(_addr);
|
DebugP(this) << "bind to address:" << printAddress(_addr);
|
||||||
//推流鉴权
|
//推流鉴权
|
||||||
emitOnPublish();
|
emitOnPublish();
|
||||||
_sock = sock;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!_muxer){
|
if(!_muxer){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue