winlin

refine code, donot response call when transaction id is zero.

@@ -922,7 +922,9 @@ int SrsRtmpConn::process_play_control_msg(SrsConsumer* consumer, SrsMessage* msg @@ -922,7 +922,9 @@ int SrsRtmpConn::process_play_control_msg(SrsConsumer* consumer, SrsMessage* msg
922 // @see https://github.com/winlinvip/simple-rtmp-server/issues/106 922 // @see https://github.com/winlinvip/simple-rtmp-server/issues/106
923 // TODO: FIXME: response in right way, or forward in edge mode. 923 // TODO: FIXME: response in right way, or forward in edge mode.
924 SrsCallPacket* call = dynamic_cast<SrsCallPacket*>(pkt); 924 SrsCallPacket* call = dynamic_cast<SrsCallPacket*>(pkt);
925 - if (call) { 925 + // only response it when transaction id not zero,
  926 + // for the zero means donot need response.
  927 + if (call && call->transaction_id > 0) {
926 SrsCallResPacket* res = new SrsCallResPacket(call->transaction_id); 928 SrsCallResPacket* res = new SrsCallResPacket(call->transaction_id);
927 res->command_object = SrsAmf0Any::null(); 929 res->command_object = SrsAmf0Any::null();
928 res->response = SrsAmf0Any::null(); 930 res->response = SrsAmf0Any::null();