diff options
author | eddyg <[email protected]> | 2007-08-27 01:55:10 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2007-08-27 01:55:10 +0000 |
commit | 03d32783ea021b5ae8e744f094af90197294327a (patch) | |
tree | cf243fdee3f2d02359608be5b3816d6c38919105 /macosx/main.mm | |
parent | d5e4f2a6c2d7a32529866692ec70720fd787808a (diff) |
Added rudimentory error handling to HB. Instead of using hb_log() use hb_error(). Also causes us to stop muxing when we get a write error in MP4 and MKV containers. Still requires macosx dialog box by dynaflash (see main.mm for stub to use).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@869 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/main.mm')
-rw-r--r-- | macosx/main.mm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/macosx/main.mm b/macosx/main.mm index b07c7f1c8..7880214f9 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -11,6 +11,19 @@ void SigHandler( int signal ) [NSApp terminate: NULL]; } +/**************************************************************************** + * hb_error_handler + * + * Change this to display a dialog box - and maybe move it somewhere else, + * this is the only place I could find that looked like C :) +****************************************************************************/ +extern "C" { +void hb_error_handler( const char *errmsg ) +{ + fprintf(stderr, "ERROR: %s\n", errmsg ); +} +} + int main( int argc, const char ** argv ) { signal( SIGINT, SigHandler ); |