mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, donot response call when transaction id is zero.
This commit is contained in:
parent
1bf32a15e1
commit
749fac414b
1 changed files with 3 additions and 1 deletions
|
@ -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<SrsCallPacket*>(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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue