Skip to content

Commit

Permalink
fix crash in edge mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
johzzy committed Apr 7, 2022
1 parent f16f982 commit 8281e66
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions trunk/src/app/srs_app_edge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,8 @@ srs_error_t SrsEdgeIngester::process_publish_message(SrsCommonMessage* msg, stri
SrsAutoFree(SrsPacket, pkt);

// RTMP 302 redirect
if (dynamic_cast<SrsCallPacket*>(pkt)) {
SrsCallPacket* call = dynamic_cast<SrsCallPacket*>(pkt);
if (!call->arguments->is_object()) {
return err;
}

SrsCallPacket* call = dynamic_cast<SrsCallPacket*>(pkt);
if (call && call->arguments && call->arguments->is_object()) {
SrsAmf0Any* prop = NULL;
SrsAmf0Object* evt = call->arguments->to_object();

Expand Down

0 comments on commit 8281e66

Please sign in to comment.