Skip to content

Commit

Permalink
Refine code.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jun 12, 2024
1 parent 801fea3 commit 3088ff6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions trunk/src/app/srs_app_gb28181.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,12 @@ std::string srs_sip_state(SrsGbSipState ostate, SrsGbSipState state)
return srs_fmt("%s->%s", srs_gb_sip_state(ostate).c_str(), srs_gb_sip_state(state).c_str());
}

SrsGbSession::SrsGbSession() : sip_(NULL), media_(NULL)
SrsGbSession::SrsGbSession() : sip_(new SrsGbSipTcpConn()), media_(new SrsGbMediaTcpConn())
{
wrapper_ = NULL;
owner_coroutine_ = NULL;
owner_cid_ = NULL;

sip_ = SrsSharedResource<SrsGbSipTcpConn>(new SrsGbSipTcpConn());
media_ = SrsSharedResource<SrsGbMediaTcpConn>(new SrsGbMediaTcpConn());

muxer_ = new SrsGbMuxer(this);
state_ = SrsGbSessionStateInit;

Expand Down

0 comments on commit 3088ff6

Please sign in to comment.