+2015-05-01 carl <cth@carlh.net>
+
+ * Don't load image files whose names start with ._ as they
+ are probably OS X resource files (from master).
+
2015-04-30 Carl Hetherington <cth@carlh.net>
* Copy subtitle fonts to the DCP, and provide
-e09c8e97be9fb4183edc3fe7424d7db3443cccd2
, VideoContent (f)
{
bool have_j2k = false;
- if (boost::filesystem::is_regular_file (p)) {
+ if (boost::filesystem::is_regular_file (p) && valid_image_file (p)) {
_paths.push_back (p);
if (valid_j2k_file (p)) {
have_j2k = true;
bool
valid_image_file (boost::filesystem::path f)
{
+ if (boost::starts_with (f.string(), "._")) {
+ return false;
+ }
+
string ext = f.extension().string();
transform (ext.begin(), ext.end(), ext.begin(), ::tolower);
return (