mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix crash on invalid chromeMediaSourceId (fixes #3911)
This commit is contained in:
@ -215,8 +215,10 @@ class CefMediaAccessQuery {
|
|||||||
content::DesktopMediaID(content::DesktopMediaID::TYPE_SCREEN,
|
content::DesktopMediaID(content::DesktopMediaID::TYPE_SCREEN,
|
||||||
-1 /* webrtc::kFullDesktopScreenId */);
|
-1 /* webrtc::kFullDesktopScreenId */);
|
||||||
}
|
}
|
||||||
video_devices.emplace_back(request_.video_type, media_id.ToString(),
|
if (media_id.type != content::DesktopMediaID::TYPE_NONE) {
|
||||||
"Screen");
|
video_devices.emplace_back(request_.video_type, media_id.ToString(),
|
||||||
|
"Screen");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
blink::mojom::StreamDevicesSetPtr stream_devices_set =
|
blink::mojom::StreamDevicesSetPtr stream_devices_set =
|
||||||
|
Reference in New Issue
Block a user