video capture: bind all connections to one DeviceFactoryProvider
Currently, the video capture service would create a separate DeviceFactoryProvider and DeviceFactory for each client. This could potentially causes undefined behaviors when there are multiple clients, since each DeviceFactory manage devices independent of each other, the DeviceFactory might not have the up-to-date information on all devices. So fix it by only creating only one instance of DeviceFactoryProvider for the service, and all clients can bind to the same instance. Bug: None Test: manual Test: services_unittests Change-Id: I4629b3c80c11cab0a7274b07080ccb2b86ac0e86 Reviewed-on: https://chromium-review.googlesource.com/737955 Commit-Queue: Peter Qiu <zqiu@chromium.org> Reviewed-by:Christian Fremerey <chfremer@chromium.org> Cr-Commit-Position: refs/heads/master@{#512983}
Showing
Please register or sign in to comment