RTP分配端口 <= 0 为失败
This commit is contained in:
parent
cdc726999b
commit
45b3aa1368
@ -165,7 +165,7 @@ public class ZLMServerFactory {
|
|||||||
String deviceId, String channelId, boolean tcp, boolean rtcp){
|
String deviceId, String channelId, boolean tcp, boolean rtcp){
|
||||||
|
|
||||||
int localPort = sendRtpPortManager.getNextPort(serverItem);
|
int localPort = sendRtpPortManager.getNextPort(serverItem);
|
||||||
if (localPort == 0) {
|
if (localPort <= 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
SendRtpItem sendRtpItem = new SendRtpItem();
|
SendRtpItem sendRtpItem = new SendRtpItem();
|
||||||
|
Loading…
Reference in New Issue
Block a user