[vlmc-devel] main: Fix debug helper calls

Hugo Beauzée-Luyssen git at videolan.org
Sun Feb 9 14:26:14 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Feb  9 15:16:40 2014 +0200| [c9cfe3624b78e03495a6003dfb789dfcbfd4e23e] | committer: Hugo Beauzée-Luyssen

main: Fix debug helper calls

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c9cfe3624b78e03495a6003dfb789dfcbfd4e23e
---

 src/Main/main.cpp |    4 ++--
 src/Main/vlmc.cpp |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Main/main.cpp b/src/Main/main.cpp
index 4ab058a..5e9829e 100644
--- a/src/Main/main.cpp
+++ b/src/Main/main.cpp
@@ -23,10 +23,10 @@
 #include "config.h"
 #include "ConsoleRenderer.h"
 #include "ProjectManager.h"
+#include "VlmcDebug.h"
 #include "WorkflowFileRenderer.h"
 
 #include <QCoreApplication>
-#include <QtDebug>
 #include <QMetaType>
 #include <QVariant>
 
@@ -52,7 +52,7 @@ VLMCmain( int argc, char **argv )
 
     if ( app.arguments().count() < 3 )
     {
-        qCritical() << "Usage: ./vlmc project.vlmc output_file";
+        vlmcCritical() << "Usage: ./vlmc project.vlmc output_file";
         return 1;
     }
     ProjectManager  *pm = ProjectManager::getInstance();
diff --git a/src/Main/vlmc.cpp b/src/Main/vlmc.cpp
index ebe58f4..7de5f14 100644
--- a/src/Main/vlmc.cpp
+++ b/src/Main/vlmc.cpp
@@ -23,6 +23,7 @@
 #include "config.h"
 
 #include "Types.h"
+#include "VlmcDebug.h"
 
 #include <QMetaType>
 #include <QTextStream>
@@ -122,7 +123,7 @@ main( int argc, char **argv )
         {
             pid_t pid = fork();
             if( pid < 0 )
-                qFatal("Can't fork to launch VLMC. Exiting.");
+                vlmcFatal("Can't fork to launch VLMC. Exiting.");
             if( pid == 0 )
             {
                 signal( SIGSEGV, signalHandler );



More information about the Vlmc-devel mailing list