projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
f45b53e8f5d13f3dd3eecd14bfd44a12fb788d4e from master; ignore ._ files.
[dcpomatic.git]
/
src
/
lib
/
util.cc
diff --git
a/src/lib/util.cc
b/src/lib/util.cc
index f98e5960bb20e807f8bf2c9df0c0594a38f54926..22baa8fd3b920482551231df7037281974d60d49 100644
(file)
--- a/
src/lib/util.cc
+++ b/
src/lib/util.cc
@@
-509,6
+509,10
@@
audio_channel_name (int c)
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 (