From b1fa9e3000a838665ecdf390183f58b5c6d8d962 Mon Sep 17 00:00:00 2001 From: blueskiner Date: Fri, 1 Dec 2023 09:46:13 +0800 Subject: [PATCH] =?UTF-8?q?RtcSsrc=E8=A7=A3=E6=9E=90=E6=97=B6=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=8F=92=E5=85=A5=E8=BF=94=E5=9B=9E=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E5=AF=B9=E8=B1=A1=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/Sdp.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webrtc/Sdp.cpp b/webrtc/Sdp.cpp index c1dd3372..89a9092c 100644 --- a/webrtc/Sdp.cpp +++ b/webrtc/Sdp.cpp @@ -274,10 +274,9 @@ void RtcSessionSdp::parse(const string &str) { continue; } - if (line_set.find(line) != line_set.end()) { + if (!line_set.emplace(line).second) { continue; } - line_set.emplace(line); auto key = line.substr(0, 1); auto value = line.substr(2);