mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SmartPtr: Support shared ptr for RTC source. v6.0.128 (#4085)
--------- Co-authored-by: Haibo Chen <495810242@qq.com>
This commit is contained in:
parent
242152bd6b
commit
9dba99a1cc
17 changed files with 120 additions and 99 deletions
|
@ -24,6 +24,7 @@
|
|||
#include <srs_protocol_conn.hpp>
|
||||
#include <srs_app_conn.hpp>
|
||||
#include <srs_app_async_call.hpp>
|
||||
#include <srs_core_autofree.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
@ -217,7 +218,7 @@ private:
|
|||
SrsRtcPLIWorker* pli_worker_;
|
||||
private:
|
||||
SrsRequest* req_;
|
||||
SrsRtcSource* source_;
|
||||
SrsSharedPtr<SrsRtcSource> source_;
|
||||
// key: publish_ssrc, value: send track to process rtp/rtcp
|
||||
std::map<uint32_t, SrsRtcAudioSendTrack*> audio_tracks_;
|
||||
std::map<uint32_t, SrsRtcVideoSendTrack*> video_tracks_;
|
||||
|
@ -343,7 +344,7 @@ private:
|
|||
SrsErrorPithyPrint* pli_epp;
|
||||
private:
|
||||
SrsRequest* req_;
|
||||
SrsRtcSource* source;
|
||||
SrsSharedPtr<SrsRtcSource> source_;
|
||||
// Simulators.
|
||||
int nn_simulate_nack_drop;
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue