Skip to content

Commit

Permalink
SmartPtr: Fix utest fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jun 7, 2024
1 parent 9c076f8 commit 79bbdc7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions trunk/src/app/srs_app_gb28181.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,6 @@ srs_error_t SrsLazyGbSipTcpConn::bind_session(SrsSipMessage* msg, SrsLazyGbSessi
session = new SrsSharedResource<SrsLazyGbSession>(raw_session);
_srs_gb_manager->add_with_id(device, session);

// Notice SIP session to use current SIP connection.
raw_session->on_sip_transport(*wrapper_);

SrsExecutorCoroutine* executor = new SrsExecutorCoroutine(_srs_gb_manager, session, raw_session, raw_session);
raw_session->setup_owner(session, executor, executor);

Expand All @@ -992,7 +989,8 @@ srs_error_t SrsLazyGbSipTcpConn::bind_session(SrsSipMessage* msg, SrsLazyGbSessi
srs_freep(invite_ok_); invite_ok_ = pre->invite_ok_->copy();
}

// Save session for SIP transport.
// Notice session to use current SIP connection.
raw_session->on_sip_transport(*wrapper_);
*psession = raw_session;

return err;
Expand Down Expand Up @@ -1452,6 +1450,7 @@ srs_error_t SrsLazyGbMediaTcpConn::bind_session(uint32_t ssrc, SrsLazyGbSession*
SrsLazyGbSession* raw_session = (*session).get();
srs_assert(raw_session);

// Notice session to use current media connection.
raw_session->on_media_transport(*wrapper_);
*psession = raw_session;

Expand Down

0 comments on commit 79bbdc7

Please sign in to comment.