mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-07 04:08:13 +08:00
Track对象新增clone方法
This commit is contained in:
@@ -29,8 +29,9 @@
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
void RtspMuxer::addTrack(const Track::Ptr &track, uint32_t ssrc, int mtu) {
|
||||
//记录该Track
|
||||
void RtspMuxer::addTrack(const Track::Ptr &track_in, uint32_t ssrc, int mtu) {
|
||||
//克隆对象,防止在setDelegate时错误覆盖
|
||||
auto track = track_in->clone();
|
||||
auto codec_id = track->getCodecId();
|
||||
_track_map[codec_id] = track;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user