From 1dc604db52a6ccad29e97e68bbc06d56ff3f417c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Mar 2020 20:41:19 +0100 Subject: [PATCH] Fix up device name on Windows. --- src/lib/cross_linux.cc | 2 +- src/tools/dcpomatic_dist_writer.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/cross_linux.cc b/src/lib/cross_linux.cc index 5073abe08..06c9b521b 100644 --- a/src/lib/cross_linux.cc +++ b/src/lib/cross_linux.cc @@ -300,7 +300,7 @@ get_drives () mounted = true; } } - drives.push_back(Drive(i->path().filename().string(), size, mounted, vendor, model)); + drives.push_back(Drive("/dev/" + i->path().filename().string(), size, mounted, vendor, model)); LOG_DIST("Block device %1 size %2 %3 vendor %4 model %5", name, size, mounted ? "mounted" : "not mounted", vendor.get_value_or("[none]"), model.get_value_or("[none]")); } } diff --git a/src/tools/dcpomatic_dist_writer.cc b/src/tools/dcpomatic_dist_writer.cc index c965666e6..404136878 100644 --- a/src/tools/dcpomatic_dist_writer.cc +++ b/src/tools/dcpomatic_dist_writer.cc @@ -366,7 +366,7 @@ idle () } dcp_path = *s; - device = "/dev/" + nanomsg->blocking_get (); + device = nanomsg->blocking_get(); LOG_DIST ("Here we go writing %1 to %2", dcp_path, device); -- 2.30.2