From: Carl Hetherington Date: Thu, 27 Sep 2012 09:29:38 +0000 (+0100) Subject: Try to fix problems with upper-case still-image extensions. X-Git-Tag: v2.0.48~1720^2~7 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=034e63ec04e416f4944069adfb0c01ca163e0cc0;p=dcpomatic.git Try to fix problems with upper-case still-image extensions. --- diff --git a/src/lib/film_state.cc b/src/lib/film_state.cc index 739eeac3c..e472434ce 100644 --- a/src/lib/film_state.cc +++ b/src/lib/film_state.cc @@ -251,10 +251,13 @@ ContentType FilmState::content_type () const { #if BOOST_FILESYSTEM_VERSION == 3 - string const ext = filesystem::path(content).extension().string(); + string ext = filesystem::path(content).extension().string(); #else - string const ext = filesystem::path(content).extension(); + string ext = filesystem::path(content).extension(); #endif + + transform (ext.begin(), ext.end(), ext.begin(), ::tolower); + if (ext == ".tif" || ext == ".tiff" || ext == ".jpg" || ext == ".jpeg" || ext == ".png") { return STILL; }