From 802f964cd3fc6b01bb2d00fd7c4d16d0915f8095 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 8 Oct 2014 18:17:27 +0800 Subject: [PATCH] Enable AVFoundation --- atom/app/atom_main_delegate.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atom/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc index f754a1b347f0..34d434fc77e4 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"); }