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

Issue 1153063002: Initialize AVFoundation explicitly (Closed)

Created:
5 years, 7 months ago by tommi (sloooow) - chröme
Modified:
5 years, 2 months ago
Reviewers:
jam
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize AVFoundation explicitly instead of implicitly via IsAVFoundationSupported. AVFoundation initialization is not thread safe and API calls can occur after initialization from arbitrary threads, so we need to do this step as part of browser init. See bug for more details. BUG=492064 Committed: https://crrev.com/354afdd334545b9dad76e6dcf16b1bbffba7bc0b Cr-Commit-Position: refs/heads/master@{#331629}

Patch Set 1 #

Patch Set 2 : Fix media_unittests #

Patch Set 3 : Fix WebRTC content browser tests #

Patch Set 4 : Revert added file #

Patch Set 5 : Fix ppapi tests #

Total comments: 6

Patch Set 6 : Move initialization around #

Patch Set 7 : Revert change in webrtc content browsertest #

Total comments: 4

Patch Set 8 : Add perf trace for InitializeAVFoundation and revert changes in browser_test_base.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -6 lines) Patch
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M media/base/mac/avfoundation_glue.h View 1 2 4 chunks +12 lines, -0 lines 0 comments Download
M media/base/mac/avfoundation_glue.mm View 1 2 chunks +17 lines, -5 lines 0 comments Download
M media/video/capture/mac/video_capture_device_factory_mac_unittest.mm View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M media/video/capture/video_capture_device_unittest.cc View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 30 (3 generated)
tommi (sloooow) - chröme
Fix media_unittests
5 years, 7 months ago (2015-05-26 11:58:08 UTC) #1
tommi (sloooow) - chröme
Fix WebRTC content browser tests
5 years, 7 months ago (2015-05-26 13:26:10 UTC) #2
tommi (sloooow) - chröme
Revert added file
5 years, 7 months ago (2015-05-26 13:54:34 UTC) #3
tommi (sloooow) - chröme
Fix ppapi tests
5 years, 7 months ago (2015-05-26 15:04:36 UTC) #4
tommi (sloooow) - chröme
Hey John, Can you take a look please? If there's a better place/way to do ...
5 years, 7 months ago (2015-05-26 16:18:25 UTC) #6
jam
https://codereview.chromium.org/1153063002/diff/80001/chrome/browser/chrome_browser_main_mac.mm File chrome/browser/chrome_browser_main_mac.mm (right): https://codereview.chromium.org/1153063002/diff/80001/chrome/browser/chrome_browser_main_mac.mm#newcode126 chrome/browser/chrome_browser_main_mac.mm:126: AVFoundationGlue::InitializeAVFoundation(); i think we want this in src/content so ...
5 years, 7 months ago (2015-05-26 23:13:48 UTC) #7
tommi (sloooow) - chröme
https://codereview.chromium.org/1153063002/diff/80001/chrome/browser/chrome_browser_main_mac.mm File chrome/browser/chrome_browser_main_mac.mm (right): https://codereview.chromium.org/1153063002/diff/80001/chrome/browser/chrome_browser_main_mac.mm#newcode126 chrome/browser/chrome_browser_main_mac.mm:126: AVFoundationGlue::InitializeAVFoundation(); On 2015/05/26 at 23:13:47, jam wrote: > i ...
5 years, 7 months ago (2015-05-27 09:11:02 UTC) #8
tommi (sloooow) - chröme
Move initialization around
5 years, 7 months ago (2015-05-27 13:48:34 UTC) #9
tommi (sloooow) - chröme
Revert change in webrtc content browsertest
5 years, 7 months ago (2015-05-27 14:40:49 UTC) #10
jam
lgtm https://codereview.chromium.org/1153063002/diff/120001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1153063002/diff/120001/content/browser/browser_main_loop.cc#newcode656 content/browser/browser_main_loop.cc:656: AVFoundationGlue::InitializeAVFoundation(); btw do you have timings on how ...
5 years, 7 months ago (2015-05-27 14:54:38 UTC) #11
tommi (sloooow) - chröme
Add perf trace for InitializeAVFoundation and revert changes in browser_test_base.cc
5 years, 7 months ago (2015-05-27 15:52:55 UTC) #12
tommi (sloooow) - chröme
https://codereview.chromium.org/1153063002/diff/120001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/1153063002/diff/120001/content/browser/browser_main_loop.cc#newcode656 content/browser/browser_main_loop.cc:656: AVFoundationGlue::InitializeAVFoundation(); On 2015/05/27 14:54:37, jam wrote: > btw do ...
5 years, 7 months ago (2015-05-27 15:54:54 UTC) #13
tommi (sloooow) - chröme
On 2015/05/27 at 15:54:54, tommi wrote: > https://codereview.chromium.org/1153063002/diff/120001/content/browser/browser_main_loop.cc > File content/browser/browser_main_loop.cc (right): > > https://codereview.chromium.org/1153063002/diff/120001/content/browser/browser_main_loop.cc#newcode656 ...
5 years, 7 months ago (2015-05-27 19:52:56 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1153063002/140001
5 years, 7 months ago (2015-05-27 19:53:53 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-27 20:05:47 UTC) #18
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/354afdd334545b9dad76e6dcf16b1bbffba7bc0b Cr-Commit-Position: refs/heads/master@{#331629}
5 years, 7 months ago (2015-05-27 20:06:45 UTC) #19
jabdelmalek
On 2015/05/27 19:52:56, tommi wrote: > On 2015/05/27 at 15:54:54, tommi wrote: > > > ...
5 years, 7 months ago (2015-05-27 20:07:35 UTC) #20
tommi (sloooow) - chröme
On 2015/05/27 at 20:07:35, jabdelmalek wrote: > On 2015/05/27 19:52:56, tommi wrote: > > On ...
5 years, 7 months ago (2015-05-27 20:23:49 UTC) #21
jabdelmalek
On 2015/05/27 20:23:49, tommi wrote: > On 2015/05/27 at 20:07:35, jabdelmalek wrote: > > On ...
5 years, 7 months ago (2015-05-27 20:30:18 UTC) #22
tommi (sloooow) - chröme
At one time at least, that was the idea. The DeviceMonitor on mac triggered this ...
5 years, 7 months ago (2015-05-27 20:50:31 UTC) #23
jam
On Wed, May 27, 2015 at 1:50 PM, Tommi <tommi@chromium.org> wrote: > At one time ...
5 years, 7 months ago (2015-05-27 21:10:42 UTC) #24
tommi (sloooow) - chröme
On 2015/05/27 at 21:10:42, jam wrote: > On Wed, May 27, 2015 at 1:50 PM, ...
5 years, 7 months ago (2015-05-27 21:31:08 UTC) #25
jam
On Wed, May 27, 2015 at 2:31 PM, <tommi@chromium.org> wrote: > On 2015/05/27 at 21:10:42, ...
5 years, 7 months ago (2015-05-27 22:29:02 UTC) #26
tommi (sloooow) - chröme
Yes we should be able to do that. I'll see if I can track down ...
5 years, 7 months ago (2015-05-28 06:44:17 UTC) #27
jam
On 2015/05/28 06:44:17, tommi (away) wrote: > Yes we should be able to do that. ...
5 years, 5 months ago (2015-07-24 17:03:30 UTC) #28
jam
On 2015/07/24 17:03:30, jam wrote: > On 2015/05/28 06:44:17, tommi (away) wrote: > > Yes ...
5 years, 3 months ago (2015-09-16 20:11:57 UTC) #29
mcasas
5 years, 2 months ago (2015-10-09 18:20:54 UTC) #30
Message was sent while issue was closed.
On 2015/09/16 20:11:57, jam wrote:
> On 2015/07/24 17:03:30, jam wrote:
> > On 2015/05/28 06:44:17, tommi (away) wrote:
> > > Yes we should be able to do that.  I'll see if I can track down where
those
> > > places are and hopefully find a single one and then move the call out from
> > > PreCreateThreads.
> > 
> > btw has there been a fix for this?
> 
> ping

http://crbug.com/541679

Powered by Google App Engine
This is Rietveld 408576698