RTP分配端口 <= 0 为失败

This commit is contained in:
zxb 2023-10-13 16:28:59 +08:00
parent cdc726999b
commit 45b3aa1368

View File

@ -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();