1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

donot ensure transaction-id===1 for connect req/res, change to 0.9.41

This commit is contained in:
winlin 2014-03-31 10:22:00 +08:00
parent e3254377ce
commit 27029679e9
2 changed files with 9 additions and 5 deletions

View file

@ -1752,11 +1752,13 @@ int SrsConnectAppPacket::decode(SrsStream* stream)
srs_error("amf0 decode connect transaction_id failed. ret=%d", ret);
return ret;
}
// some client donot send id=1.0, so we only warn user if not match.
if (transaction_id != 1.0) {
ret = ERROR_RTMP_AMF0_DECODE;
srs_error("amf0 decode connect transaction_id failed. "
srs_warn("amf0 decode connect transaction_id failed. "
"required=%.1f, actual=%.1f, ret=%d", 1.0, transaction_id, ret);
return ret;
ret = ERROR_SUCCESS;
}
if ((ret = command_object->read(stream)) != ERROR_SUCCESS) {
@ -1845,11 +1847,13 @@ int SrsConnectAppResPacket::decode(SrsStream* stream)
srs_error("amf0 decode connect transaction_id failed. ret=%d", ret);
return ret;
}
// some client donot send id=1.0, so we only warn user if not match.
if (transaction_id != 1.0) {
ret = ERROR_RTMP_AMF0_DECODE;
srs_error("amf0 decode connect transaction_id failed. "
srs_warn("amf0 decode connect transaction_id failed. "
"required=%.1f, actual=%.1f, ret=%d", 1.0, transaction_id, ret);
return ret;
ret = ERROR_SUCCESS;
}
if ((ret = props->read(stream)) != ERROR_SUCCESS) {