From: Cheng Zhao Date: Wed, 8 Oct 2014 10:17:27 +0000 (+0800) Subject: Enable AVFoundation X-Git-Tag: v0.18.0~8^2~1 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=802f964cd3fc6b01bb2d00fd7c4d16d0915f8095;p=electron.git Enable AVFoundation --- diff --git a/atom/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc index f754a1b3..34d434fc 100644 --- a/atom/app/atom_main_delegate.cc +++ b/atom/app/atom_main_delegate.cc @@ -73,6 +73,11 @@ void AtomMainDelegate::PreSandboxStartup() { // Disable renderer sandbox for most of node's functions. command_line->AppendSwitch(switches::kNoSandbox); +#if defined(OS_MACOSX) + // Enable AVFoundation. + command_line->AppendSwitch("enable-avfoundation"); +#endif + // Add a flag to mark the end of switches added by atom-shell. command_line->AppendSwitch("atom-shell-switches-end"); }