]> git.sesse.net Git - mlt/blobdiff - src/modules/videostab/stab/klt/error.c
Remove exit()s that cause unexpected app failures.
[mlt] / src / modules / videostab / stab / klt / error.c
index 0731cf2cb6d3680109f457e8e1584366e4c3d7c2..5cb4ee4edb5492a6ec94b21d7254cc1e963c4434 100644 (file)
@@ -9,7 +9,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
-
+#include <framework/mlt_log.h>
 
 /*********************************************************************
  * KLTError
@@ -25,11 +25,10 @@ void KLTError(char *fmt, ...)
   va_list args;
 
   va_start(args, fmt);
-  fprintf(stderr, "KLT Error: ");
-  vfprintf(stderr, fmt, args);
-  fprintf(stderr, "\n");
+  mlt_log_error(NULL, "KLT Error: ");
+  mlt_log_error(NULL, fmt, args);
+  mlt_log_error(NULL, "\n");
   va_end(args);
-  exit(1);
 }