Check return codes everywhere
LiVES is a Video Editing System. It is designed to be simple to use, y
Brought to you by:
gfinch
Some checks for return codes are missing.
Examples:
Would you like to add more error handling for return values from "pthread_mutex_lock" like in the function "check_for_lock_file" and from "lseek" in the function "get_page"?
http://lives.cvs.sourceforge.net/viewvc/lives/lives/src/utils.c?revision=1.170&view=markup
http://lives.cvs.sourceforge.net/viewvc/lives/lives-plugins/plugins/decoders/ogg_theora_decoder.c?revision=1.22&view=markup
This would be a good fix for a newcomer to get involved.
How do you think about the reaction "exit(errno)" or "abort()"?
Would you like to reduce the efforts for error code checking by an exception class hierarchy?
http://dietmar-kuehl.de/mirror/c++-faq/exceptions.html#faq-17.1
http://cexcept.sourceforge.net/