Support build srs-librtmp by VS2015. 2.0.267

pull/1560/head
winlin 5 years ago
parent c6732d0fbb
commit 08bbbc5414

@ -211,7 +211,8 @@ int SrsPacket::encode_packet(SrsStream* stream)
SrsProtocol::AckWindowSize::AckWindowSize()
{
window = 0;
sequence_number = nb_recv_bytes = 0;
sequence_number = 0;
nb_recv_bytes = 0;
}
SrsProtocol::SrsProtocol(ISrsProtocolReaderWriter* io)

@ -71,8 +71,9 @@ void srs_discovery_tc_url(
vhost = host;
srs_vhost_resolve(vhost, app, param);
srs_vhost_resolve(vhost, stream, param);
if (param == "?vhost="SRS_CONSTS_RTMP_DEFAULT_VHOST) {
// There must be a space to make VS2015 happy.
if (param == "?vhost=" SRS_CONSTS_RTMP_DEFAULT_VHOST) {
param = "";
}
}

Loading…
Cancel
Save