Author: post
Date: 2010-04-24 16:51:12 +0200 (Sat, 24 Apr 2010)
New Revision: 219
Modified:
RawSpeed/ArwDecoder.cpp
RawSpeed/NefDecoder.cpp
RawSpeed/OrfDecoder.cpp
RawSpeed/PefDecoder.cpp
Log:
Push IO errors, so it isn't swallowed silently.
Modified: RawSpeed/ArwDecoder.cpp
===================================================================
--- RawSpeed/ArwDecoder.cpp 2010-04-24 14:41:52 UTC (rev 218)
+++ RawSpeed/ArwDecoder.cpp 2010-04-24 14:51:12 UTC (rev 219)
@@ -104,6 +104,7 @@
else
DecodeARW2(input, width, height, bitPerPixel);
} catch (IOException e) {
+ errors.push_back(_strdup(e.what()));
// Let's ignore it, it may have delivered somewhat useful data.
}
Modified: RawSpeed/NefDecoder.cpp
===================================================================
--- RawSpeed/NefDecoder.cpp 2010-04-24 14:41:52 UTC (rev 218)
+++ RawSpeed/NefDecoder.cpp 2010-04-24 14:51:12 UTC (rev 219)
@@ -112,6 +112,7 @@
NikonDecompressor decompressor(mFile, mRaw);
decompressor.DecompressNikon(metadata, width, height, bitPerPixel,
offsets->getInt(), counts->getInt());
} catch (IOException e) {
+ errors.push_back(_strdup(e.what()));
// Let's ignore it, it may have delivered somewhat useful data.
}
Modified: RawSpeed/OrfDecoder.cpp
===================================================================
--- RawSpeed/OrfDecoder.cpp 2010-04-24 14:41:52 UTC (rev 218)
+++ RawSpeed/OrfDecoder.cpp 2010-04-24 14:51:12 UTC (rev 219)
@@ -90,7 +90,8 @@
try {
decodeCompressed(s, width, height);
- } catch (IOException) {
+ } catch (IOException e) {
+ errors.push_back(_strdup(e.what()));
// Let's ignore it, it may have delivered somewhat useful data.
}
Modified: RawSpeed/PefDecoder.cpp
===================================================================
--- RawSpeed/PefDecoder.cpp 2010-04-24 14:41:52 UTC (rev 218)
+++ RawSpeed/PefDecoder.cpp 2010-04-24 14:51:12 UTC (rev 219)
@@ -65,6 +65,7 @@
PentaxDecompressor l(mFile, mRaw);
l.decodePentax(offsets->getInt(), counts->getInt());
} catch (IOException e) {
+ errors.push_back(_strdup(e.what()));
// Let's ignore it, it may have delivered somewhat useful data.
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit