From 2965248346dbb537f6f00ae3d0f4717026ac4bc4 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 10 Oct 2020 18:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dstd::move=E5=90=8E=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E6=8C=87=E9=92=88=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtmp/RtmpMediaSource.h | 3 ++- src/Rtsp/RtspMediaSource.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Rtmp/RtmpMediaSource.h b/src/Rtmp/RtmpMediaSource.h index bc958ac5..b538c003 100644 --- a/src/Rtmp/RtmpMediaSource.h +++ b/src/Rtmp/RtmpMediaSource.h @@ -153,7 +153,8 @@ public: } } bool key = pkt->isVideoKeyFrame(); - PacketCache::inputPacket(pkt->type_id == MSG_VIDEO, std::move(pkt), key); + bool is_video = pkt->type_id == MSG_VIDEO; + PacketCache::inputPacket(is_video, std::move(pkt), key); } /** diff --git a/src/Rtsp/RtspMediaSource.h b/src/Rtsp/RtspMediaSource.h index 5a8f39e8..cafeaf33 100644 --- a/src/Rtsp/RtspMediaSource.h +++ b/src/Rtsp/RtspMediaSource.h @@ -182,7 +182,8 @@ public: regist(); } } - PacketCache::inputPacket(rtp->type == TrackVideo, std::move(rtp), keyPos); + bool is_video = rtp->type == TrackVideo; + PacketCache::inputPacket(is_video, std::move(rtp), keyPos); } void clearCache() override{