]> khamidou — GitHub mirrors - electron.git/commitdiff
Enable AVFoundation
authorCheng Zhao <zcbenz@gmail.com>
Wed, 8 Oct 2014 10:17:27 +0000 (18:17 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 8 Oct 2014 10:17:27 +0000 (18:17 +0800)
atom/app/atom_main_delegate.cc

index f754a1b347f0025395b43f4ee4f0789e83a29b7b..34d434fc77e4f601c4f6a6ffa4646f9c4e94e2ff 100644 (file)
@@ -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");
 }