8000 [Windows] fix bug: 迭代判断错误 (#807) · flutter-robert/flutter-webrtc@5c3fd9f · GitHub < 8000 body class="logged-out env-production page-responsive" style="word-wrap: break-word;">
Skip to content

Commit 5c3fd9f

Browse files
authored
[Windows] fix bug: 迭代判断错误 (flutter-webrtc#807)
1 parent f6e2b57 commit 5c3fd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/cpp/src/flutter_media_stream.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ EncodableValue getConstrainInt(const EncodableMap& constraints, const std::strin
141141
if(TypeIs<EncodableMap>(it->second)) {
142142
EncodableMap innerMap = GetValue<EncodableMap>(it->second);
143143
auto it2 = innerMap.find(EncodableValue("ideal"));
144-
if(it2 != constraints.end() && TypeIs<int>(it2->second)){
144+
if (it2 != innerMap.end() && TypeIs<int>(it2->second)) {
145145
return it2->second;
146146
}
147147
}

0 commit comments

Comments
 (0)
0