From 90cb8164f279f1d7fd3fa3234301cda5827ae97f Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 07 Jan 2012 18:01:35 +0000 Subject: support .CR2 files Signed-off-by: Michael Krelin --- diff --git a/src/eyefiservice.cc b/src/eyefiservice.cc index 9350386..5c4e308 100644 --- a/src/eyefiservice.cc +++ b/src/eyefiservice.cc @@ -169,7 +169,8 @@ int eyefiService::UploadPhoto( std::string::size_type fl = f.length(); if(fl<4) continue; const char *s = f.c_str()+fl-4; - static const char *suffixes[] = { ".JPG",".AVI",".MP4",".NEF",".RAW",".TIF",".DNG",".CRW", ".RW2" }; + static const char *suffixes[] = { ".JPG",".AVI",".MP4",".NEF",".RAW",".TIF",".DNG",".CRW", + ".RW2",".CR2" }; if(std::find_if(suffixes,suffixes+sizeof(suffixes)/sizeof(*suffixes), std::not1(std::bind1st(std::ptr_fun(strcasecmp),s))) != suffixes+sizeof(suffixes)/sizeof(*suffixes)) -- cgit v0.9.0.2