aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorace20022 <ace20022@ymail.com>2016-02-17 21:05:19 +0100
committerace20022 <ace20022@ymail.com>2016-02-17 21:09:07 +0100
commit04b01df54674c14782d4572635e88ea4a39c54f2 (patch)
tree3c8905bb4790683379f7e54083071cf5a2a187b9
parentcff41085119c5f9db9662dcb5099e5e16dfccf7a (diff)
[cximage] Stop reading if an error was reported.
-rw-r--r--lib/cximage-6.0/CxImage/ximamng.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cximage-6.0/CxImage/ximamng.cpp b/lib/cximage-6.0/CxImage/ximamng.cpp
index 865c49003c..9a77abfb07 100644
--- a/lib/cximage-6.0/CxImage/ximamng.cpp
+++ b/lib/cximage-6.0/CxImage/ximamng.cpp
@@ -253,6 +253,8 @@ bool CxImageMNG::Decode(CxFile *hFile)
// read all
while(pData->bReading){
retval = mng_display_resume(hmng);
+ if (retval != MNG_NEEDTIMERWAIT)
+ break;
info.nNumFrames++;
}