Return proper analyzer error codes on mm_io exceptions

Otherwise the exception might bubble to the top causing the program to
abort.  Fix for bug 710.
This commit is contained in:
Moritz Bunkus 2012-01-27 16:28:07 +01:00
parent e8ae268284
commit 4bdc545839
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2012-01-27 Moritz Bunkus <moritz@bunkus.org>
* mkvpropedit, mmg: bug fix: Trying to modify a file located in a
path mounted with GVFS SFTP will no longer crash the
programs. Instead an error message is output if an error
occurs. Fix for bug 710.
2012-01-25 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Fixed integer underflows in the read caching

View File

@ -344,6 +344,10 @@ kax_analyzer_c::update_element(EbmlElement *e,
} catch (kax_analyzer_c::update_element_result_e result) {
debug_dump_elements_maybe("update_element_exception");
return result;
} catch (mtx::mm_io::exception &ex) {
mxdebug_if(m_debugging_requested, boost::format("I/O exception: %1%\n") % ex.what());
return uer_error_unknown;
}
return uer_success;