Author: post
Date: 2010-04-25 21:43:36 +0200 (Sun, 25 Apr 2010)
New Revision: 230

Modified:
   RawSpeed/RawDecoder.cpp
Log:
If all threads report a decode error, throw an exception, since we most likely 
does not have an image.

Modified: RawSpeed/RawDecoder.cpp
===================================================================
--- RawSpeed/RawDecoder.cpp     2010-04-25 19:25:27 UTC (rev 229)
+++ RawSpeed/RawDecoder.cpp     2010-04-25 19:43:36 UTC (rev 230)
@@ -229,6 +229,9 @@
       errors.push_back(t[i].error);
     }
   }
+  if (errors.size() >= threads)
+    ThrowRDE("RawDecoder::startThreads: All threads reported errors. Cannot 
load image.");
+
   delete[] t;
 }
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to