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
|
@ -10,6 +10,7 @@
|
|||
#include <srs_core.hpp>
|
||||
|
||||
#include <srs_kernel_codec.hpp>
|
||||
#include <srs_core_autofree.hpp>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
@ -59,13 +60,13 @@ public:
|
|||
class SrsFrameToRtcBridge : public ISrsStreamBridge
|
||||
{
|
||||
private:
|
||||
SrsRtcSource* source_;
|
||||
SrsSharedPtr<SrsRtcSource> source_;
|
||||
private:
|
||||
#if defined(SRS_FFMPEG_FIT)
|
||||
SrsRtcRtpBuilder* rtp_builder_;
|
||||
#endif
|
||||
public:
|
||||
SrsFrameToRtcBridge(SrsRtcSource* source);
|
||||
SrsFrameToRtcBridge(SrsSharedPtr<SrsRtcSource> source);
|
||||
virtual ~SrsFrameToRtcBridge();
|
||||
public:
|
||||
virtual srs_error_t initialize(SrsRequest* r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue