fix bug of SrsFMLEStartPacket command name, set_recv_timeout(SRS_PAUSED_RECV_TIMEOUT_US)

pull/133/head
winlin 11 years ago
parent 797d548766
commit 4aeed8df1d

@ -184,7 +184,7 @@ int SrsClient::service_cycle()
// logical accept and retry stream service.
if (ret == ERROR_CONTROL_RTMP_CLOSE) {
// set timeout to a larger value, for user paused.
rtmp->set_recv_timeout(SRS_PAUSED_SEND_TIMEOUT_US);
rtmp->set_recv_timeout(SRS_PAUSED_RECV_TIMEOUT_US);
rtmp->set_send_timeout(SRS_PAUSED_SEND_TIMEOUT_US);
srs_trace("control message(close) accept, retry stream service.");

@ -2110,7 +2110,7 @@ int SrsCloseStreamPacket::decode(SrsStream* stream)
SrsFMLEStartPacket::SrsFMLEStartPacket()
{
command_name = RTMP_AMF0_COMMAND_CREATE_STREAM;
command_name = RTMP_AMF0_COMMAND_RELEASE_STREAM;
transaction_id = 0;
command_object = new SrsAmf0Null();
}

Loading…
Cancel
Save