From 749fac414b894f3ac4a9500f021a5b5ffd7f01d0 Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 18 Nov 2014 17:30:40 +0800 Subject: [PATCH] refine code, donot response call when transaction id is zero. --- trunk/src/app/srs_app_rtmp_conn.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_rtmp_conn.cpp b/trunk/src/app/srs_app_rtmp_conn.cpp index 418236a89..165fa0eee 100644 --- a/trunk/src/app/srs_app_rtmp_conn.cpp +++ b/trunk/src/app/srs_app_rtmp_conn.cpp @@ -922,7 +922,9 @@ int SrsRtmpConn::process_play_control_msg(SrsConsumer* consumer, SrsMessage* msg // @see https://github.com/winlinvip/simple-rtmp-server/issues/106 // TODO: FIXME: response in right way, or forward in edge mode. SrsCallPacket* call = dynamic_cast(pkt); - if (call) { + // only response it when transaction id not zero, + // for the zero means donot need response. + if (call && call->transaction_id > 0) { SrsCallResPacket* res = new SrsCallResPacket(call->transaction_id); res->command_object = SrsAmf0Any::null(); res->response = SrsAmf0Any::null();