diff --git a/trunk/src/protocol/srs_rtmp_stack.cpp b/trunk/src/protocol/srs_rtmp_stack.cpp index ca5867f3d..d002356b3 100644 --- a/trunk/src/protocol/srs_rtmp_stack.cpp +++ b/trunk/src/protocol/srs_rtmp_stack.cpp @@ -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) diff --git a/trunk/src/protocol/srs_rtmp_utility.cpp b/trunk/src/protocol/srs_rtmp_utility.cpp index b050488f0..e37612d49 100644 --- a/trunk/src/protocol/srs_rtmp_utility.cpp +++ b/trunk/src/protocol/srs_rtmp_utility.cpp @@ -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 = ""; } }