mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-11-24 00:47:21 +08:00
修复访问空指针的bug
This commit is contained in:
@@ -33,8 +33,8 @@ void RtspMediaSource::onWrite(RtpPacket::Ptr rtp, bool keyPos) {
|
||||
regist();
|
||||
}
|
||||
}
|
||||
|
||||
PacketCache<RtpPacket>::inputPacket(stamp, rtp->type == TrackVideo, std::move(rtp), keyPos);
|
||||
auto is_video = rtp->type == TrackVideo;
|
||||
PacketCache<RtpPacket>::inputPacket(stamp, is_video, std::move(rtp), keyPos);
|
||||
}
|
||||
|
||||
RtspMediaSourceImp::RtspMediaSourceImp(const MediaTuple& tuple, int ringSize): RtspMediaSource(tuple, ringSize)
|
||||
|
||||
Reference in New Issue
Block a user