From 4aeed8df1d770b0669326e13dc6a1513f01e88f1 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 24 Feb 2014 09:12:57 +0800 Subject: [PATCH] fix bug of SrsFMLEStartPacket command name, set_recv_timeout(SRS_PAUSED_RECV_TIMEOUT_US) --- trunk/src/core/srs_core_client.cpp | 2 +- trunk/src/core/srs_core_protocol.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/core/srs_core_client.cpp b/trunk/src/core/srs_core_client.cpp index e464ba804..78f7c05c9 100644 --- a/trunk/src/core/srs_core_client.cpp +++ b/trunk/src/core/srs_core_client.cpp @@ -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."); diff --git a/trunk/src/core/srs_core_protocol.cpp b/trunk/src/core/srs_core_protocol.cpp index 1ab78e056..a5ddfa61e 100644 --- a/trunk/src/core/srs_core_protocol.cpp +++ b/trunk/src/core/srs_core_protocol.cpp @@ -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(); }