Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 362323003: Mac AVFoundation: Blackmagic camera blacklisting update (Closed)

Created:
6 years, 5 months ago by mcasas
Modified:
6 years, 5 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Mac AVFoundation: Blackmagic camera blacklisting update crrev.com/255933006 landed blacklisting for BlackMagic cameras in Mac: QTKit would be used instead of AVFoundation for these devices. The code was based on the assumption that these cameras have a USB vendor ID but this is not correct since they use a Thunderbolt connection, i.e. PCIe, and another crrev.com/366593003 is going to prevent GetModel(). This CL changes to using a characteristic substring of the uniqueId. TEST: Plug in a Blackmagic, f.i. an UltraStudio Mini Recorder (doesn't need any camera connected to it) and check enumerate devices, there should be a multiplicity of devices with a "QTKit..." prefix, indicating there was a blacklisting process. BUG=347371 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281707

Patch Set 1 #

Total comments: 6

Patch Set 2 : Recoded the blacklisted |unique_id_signature| comparison. #

Total comments: 4

Patch Set 3 : tommi@s comments #

Total comments: 4

Patch Set 4 : tommi@s 2nd round of comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M media/video/capture/mac/video_capture_device_factory_mac.mm View 1 2 3 4 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mcasas
tommi@ PTAL.
6 years, 5 months ago (2014-07-03 08:11:57 UTC) #1
tommi (sloooow) - chröme
On 2014/07/03 08:11:57, mcasas wrote: > tommi@ PTAL. FYI on the description. Chromium uses "TEST=<what ...
6 years, 5 months ago (2014-07-03 09:51:39 UTC) #2
tommi (sloooow) - chröme
https://codereview.chromium.org/362323003/diff/1/media/video/capture/mac/video_capture_device_factory_mac.mm File media/video/capture/mac/video_capture_device_factory_mac.mm (right): https://codereview.chromium.org/362323003/diff/1/media/video/capture/mac/video_capture_device_factory_mac.mm#newcode110 media/video/capture/mac/video_capture_device_factory_mac.mm:110: is_any_device_blacklisted |= (strcasestr(name.id().c_str(), I don't recall seeing strcasestr being ...
6 years, 5 months ago (2014-07-03 09:56:56 UTC) #3
mcasas
tommi@ thanks for the TEST/TESTED tip :) , PTAL The |unique_id_signature| is a substring of ...
6 years, 5 months ago (2014-07-03 12:52:56 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/362323003/diff/20001/media/video/capture/mac/video_capture_device_factory_mac.mm File media/video/capture/mac/video_capture_device_factory_mac.mm (right): https://codereview.chromium.org/362323003/diff/20001/media/video/capture/mac/video_capture_device_factory_mac.mm#newcode23 media/video/capture/mac/video_capture_device_factory_mac.mm:23: } kBlacklistedCameras[] = { { "01FDA82C8A9C", "Blackmagic" } }; ...
6 years, 5 months ago (2014-07-03 13:35:14 UTC) #5
mcasas
PTAL. https://codereview.chromium.org/362323003/diff/20001/media/video/capture/mac/video_capture_device_factory_mac.mm File media/video/capture/mac/video_capture_device_factory_mac.mm (right): https://codereview.chromium.org/362323003/diff/20001/media/video/capture/mac/video_capture_device_factory_mac.mm#newcode23 media/video/capture/mac/video_capture_device_factory_mac.mm:23: } kBlacklistedCameras[] = { { "01FDA82C8A9C", "Blackmagic" } ...
6 years, 5 months ago (2014-07-03 13:50:26 UTC) #6
tommi (sloooow) - chröme
https://codereview.chromium.org/362323003/diff/80001/media/video/capture/mac/video_capture_device_factory_mac.mm File media/video/capture/mac/video_capture_device_factory_mac.mm (right): https://codereview.chromium.org/362323003/diff/80001/media/video/capture/mac/video_capture_device_factory_mac.mm#newcode20 media/video/capture/mac/video_capture_device_factory_mac.mm:20: // substrings of the uniqueId and name, the latter ...
6 years, 5 months ago (2014-07-03 14:06:34 UTC) #7
mcasas
https://codereview.chromium.org/362323003/diff/80001/media/video/capture/mac/video_capture_device_factory_mac.mm File media/video/capture/mac/video_capture_device_factory_mac.mm (right): https://codereview.chromium.org/362323003/diff/80001/media/video/capture/mac/video_capture_device_factory_mac.mm#newcode20 media/video/capture/mac/video_capture_device_factory_mac.mm:20: // substrings of the uniqueId and name, the latter ...
6 years, 5 months ago (2014-07-03 16:07:38 UTC) #8
mcasas
ping.
6 years, 5 months ago (2014-07-08 06:36:56 UTC) #9
tommi (sloooow) - chröme
oops sorry. lgtm.
6 years, 5 months ago (2014-07-08 07:59:12 UTC) #10
mcasas
The CQ bit was checked by mcasas@chromium.org
6 years, 5 months ago (2014-07-08 08:19:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mcasas@chromium.org/362323003/110001
6 years, 5 months ago (2014-07-08 08:20:47 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-08 10:27:50 UTC) #13
Message was sent while issue was closed.
Change committed as 281707

Powered by Google App Engine
This is Rietveld 408576698