From 629a658bc0afc640ed599637832c201711b5f1bd Mon Sep 17 00:00:00 2001 From: eddyg Date: Mon, 27 Aug 2007 22:06:37 +0000 Subject: Enable jam to work by changing the error handling to use a callback rather than a direct call outside of libhb. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@880 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/main.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'macosx/main.mm') diff --git a/macosx/main.mm b/macosx/main.mm index 7880214f9..d4a05b5d2 100644 --- a/macosx/main.mm +++ b/macosx/main.mm @@ -5,6 +5,7 @@ It may be used under the terms of the GNU General Public License. */ #include +#import "hb.h" void SigHandler( int signal ) { @@ -20,12 +21,13 @@ void SigHandler( int signal ) extern "C" { void hb_error_handler( const char *errmsg ) { - fprintf(stderr, "ERROR: %s\n", errmsg ); + fprintf(stderr, "GUI ERROR dialog: %s\n", errmsg ); } } int main( int argc, const char ** argv ) { signal( SIGINT, SigHandler ); + hb_register_error_handler(&hb_error_handler); return NSApplicationMain( argc, argv ); } -- cgit v1.2.3