mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复std::move后智能指针无效的问题
This commit is contained in:
parent
209689121a
commit
2965248346
@ -153,7 +153,8 @@ public:
|
||||
}
|
||||
}
|
||||
bool key = pkt->isVideoKeyFrame();
|
||||
PacketCache<RtmpPacket>::inputPacket(pkt->type_id == MSG_VIDEO, std::move(pkt), key);
|
||||
bool is_video = pkt->type_id == MSG_VIDEO;
|
||||
PacketCache<RtmpPacket>::inputPacket(is_video, std::move(pkt), key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -182,7 +182,8 @@ public:
|
||||
regist();
|
||||
}
|
||||
}
|
||||
PacketCache<RtpPacket>::inputPacket(rtp->type == TrackVideo, std::move(rtp), keyPos);
|
||||
bool is_video = rtp->type == TrackVideo;
|
||||
PacketCache<RtpPacket>::inputPacket(is_video, std::move(rtp), keyPos);
|
||||
}
|
||||
|
||||
void clearCache() override{
|
||||
|
Loading…
Reference in New Issue
Block a user