Repeat frames rather than using black for missing frames when we're inside some content.
[dcpomatic.git] / src / lib / config.cc
index 54b9168f2542a1bbd8ee49d0b933f4c95007ada2..ccbcdf7ddb04e5cf08f4a80ca3c1d609545ce556 100644 (file)
@@ -353,7 +353,13 @@ Config::write () const
 boost::filesystem::path
 Config::default_directory_or (boost::filesystem::path a) const
 {
-       if (_default_directory.empty() || !boost::filesystem::exists (_default_directory)) {
+       if (_default_directory.empty()) {
+               return a;
+       }
+
+       boost::system::error_code ec;
+       bool const e = boost::filesystem::exists (_default_directory, ec);
+       if (ec || !e) {
                return a;
        }