summaryrefslogtreecommitdiffstats
path: root/macosx/main.mm
diff options
context:
space:
mode:
authoreddyg <[email protected]>2007-08-27 22:06:37 +0000
committereddyg <[email protected]>2007-08-27 22:06:37 +0000
commit629a658bc0afc640ed599637832c201711b5f1bd (patch)
tree1ce2a395fe48cec25dbe36953b5ff772f51cff28 /macosx/main.mm
parent9f3728e88693ae501dce5a83d7d2852566167238 (diff)
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
Diffstat (limited to 'macosx/main.mm')
-rw-r--r--macosx/main.mm4
1 files changed, 3 insertions, 1 deletions
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 <Cocoa/Cocoa.h>
+#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 );
}