8000 [fix] FlutterMediaStream::GetSources (#685) · flutter-robert/flutter-webrtc@85c98f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85c98f8

Browse files
authored
[fix] FlutterMediaStream::GetSources (flutter-webrtc#685)
1 parent 476c073 commit 85c98f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

windows/src/flutter_media_stream.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ void FlutterMediaStream::GetSources(
216216
for (uint16_t i = 0; i < nb_audio_devices; i++) {
217217
base_->audio_device_->PlayoutDeviceName(i, strNameUTF8, strGuidUTF8);
218218
EncodableMap audio;
219-
audio[EncodableValue("label")] = std::string(strGuidUTF8);
220-
audio[EncodableValue("deviceId")] = std::string(strNameUTF8);
219+
audio[EncodableValue("label")] = std::string(strNameUTF8);
220+
audio[EncodableValue("deviceId")] = std::string(strGuidUTF8);
221221
audio[EncodableValue("facing")] = "";
222222
audio[EncodableValue("kind")] = "audiooutput";
223223
sources.push_back(EncodableValue(audio));
@@ -227,8 +227,8 @@ void FlutterMediaStream::GetSources(
227227
for (int i = 0; i < nb_video_devices; i++) {
228228
base_->video_device_->GetDeviceName(i, strNameUTF8, 128, strGuidUTF8, 128);
229229
EncodableMap video;
230-
video[EncodableValue("label")] = std::string(strGuidUTF8);
231-
video[EncodableValue("deviceId")] = std::string(strNameUTF8);
230+
video[EncodableValue("label")] = std::string(strNameUTF8);
231+
video[EncodableValue("deviceId")] = std::string(strGuidUTF8);
232232
video[EncodableValue("facing")] = i == 1 ? "front" : "back";
233233
video[EncodableValue("kind")] = "videoinput";
234234
sources.push_back(EncodableValue(video));

0 commit comments

Comments
 (0)
0