summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authoreddyg <[email protected]>2007-08-27 01:55:10 +0000
committereddyg <[email protected]>2007-08-27 01:55:10 +0000
commit03d32783ea021b5ae8e744f094af90197294327a (patch)
treecf243fdee3f2d02359608be5b3816d6c38919105 /test
parentd5e4f2a6c2d7a32529866692ec70720fd787808a (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 'test')
-rw-r--r--test/test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index 85d506f6e..49b787a3b 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1345,3 +1345,13 @@ static int CheckOptions( int argc, char ** argv )
return 0;
}
+/****************************************************************************
+ * hb_error_handler
+ *
+ * When using the CLI just display using hb_log as we always did in the past
+ * make sure that we prefix with a nice ERROR message to catch peoples eyes.
+ ****************************************************************************/
+void hb_error_handler ( const char *errmsg )
+{
+ hb_log( "ERROR: %s", errmsg );
+}