update to 60.0.3112.101, apply upstream fix for cameras which report zero resolution formats (bz1465357)
parent
26f11a9f0f
commit
5922b5cfc9
@ -0,0 +1,25 @@
|
||||
diff -up chromium-60.0.3112.101/content/browser/renderer_host/media/media_devices_dispatcher_host.cc.camfix chromium-60.0.3112.101/content/browser/renderer_host/media/media_devices_dispatcher_host.cc
|
||||
--- chromium-60.0.3112.101/content/browser/renderer_host/media/media_devices_dispatcher_host.cc.camfix 2017-08-16 17:02:07.177832503 -0400
|
||||
+++ chromium-60.0.3112.101/content/browser/renderer_host/media/media_devices_dispatcher_host.cc 2017-08-16 17:02:56.378883520 -0400
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
+#include <algorithm>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -454,6 +455,13 @@ media::VideoCaptureFormats MediaDevicesD
|
||||
|
||||
media_stream_manager_->video_capture_manager()->GetDeviceSupportedFormats(
|
||||
device_id, &formats);
|
||||
+ // Remove formats that have zero resolution.
|
||||
+ formats.erase(std::remove_if(formats.begin(), formats.end(),
|
||||
+ [](const media::VideoCaptureFormat& format) {
|
||||
+ return format.frame_size.GetArea() <= 0;
|
||||
+ }),
|
||||
+ formats.end());
|
||||
+
|
||||
return formats;
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
SHA512 (depot_tools.git-master.tar.gz) = d3d6a1873b2b0296a8cd99e0d8d2e629a17b1808934b4972556168f8b4ccea60577ebaeab4445baf15afb1b04080808db59a832a5b61d247bd48da14fa6acf03
|
||||
SHA512 (chromium-60.0.3112.90-clean.tar.xz) = 3b1579037b3debc0f714e5de3e02bd5fc1c8aa7482479ffc20b824653b11191ed558cef147633b30da16ffd8c26d5eacb95b93610041a44a6ea84606702f7ac1
|
||||
SHA512 (policy_templates.zip) = 4d2a7162adb3ca224f3e1bf1d2936ae395603e8ffa3fda7753e666a16c42c7ba54c7acfcfdc742e22978ace37e471ed099d222063708d4d8a299da3daf135f15
|
||||
SHA512 (chromium-60.0.3112.101-clean.tar.xz) = 3ed13c6a32752294898fa72f2333f32fcf081eef7328307645dbc09baae95aca762d3083d2ae053fc903a0b4dc92e04da91a810d267aab21dea196362ed6abc6
|
||||
|
Loading…
Reference in new issue