Hidden debug option to make _disk not start _disk_writer on Linux. v2.15.76
authorCarl Hetherington <cth@carlh.net>
Mon, 1 Jun 2020 20:47:17 +0000 (22:47 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 1 Jun 2020 20:47:17 +0000 (22:47 +0200)
src/tools/dcpomatic_disk.cc

index b23f09d85ac9223f27e390987888c4ac7ea8b9fa..6d87273031fb8590721e082fada9ce71b3735bca 100644 (file)
@@ -130,8 +130,12 @@ public:
 #endif
 
 #ifdef DCPOMATIC_LINUX
-               LOG_DISK("Starting writer process %1", disk_writer_path().string());
-               _writer = new boost::process::child (disk_writer_path());
+               if (getenv("DCPOMATIC_NO_START_WRITER")) {
+                       LOG_DISK_NC("Not starting writer process as DCPOMATIC_NO_START_WRITER is set");
+               } else {
+                       LOG_DISK("Starting writer process %1", disk_writer_path().string());
+                       _writer = new boost::process::child (disk_writer_path());
+               }
 #endif
 
 #ifdef DCPOMATIC_OSX