]> git.sesse.net Git - mlt/commitdiff
inigo/inigo.c: add -debug and -verbose options to turn on additional logging.
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 14 Jan 2009 08:58:59 +0000 (08:58 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 14 Jan 2009 08:58:59 +0000 (08:58 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1318 d19143bc-622f-0410-bfdd-b5b2a6649095

src/inigo/inigo.c

index 204c647c37d53541dd5a750587219cc8454e7d0d..4c88f19fe3d95acac58ec1d4b27fcb9dc698cb4e 100644 (file)
@@ -398,6 +398,10 @@ query_all:
                {
                        is_silent = 1;
                }
+               else if ( !strcmp( argv[ i ], "-verbose" ) )
+               {
+                       mlt_log_set_level( MLT_LOG_VERBOSE );
+               }
                else if ( !strcmp( argv[ i ], "-version" ) || !strcmp( argv[ i ], "--version" ) )
                {
                        fprintf( stderr, "MLT inigo " VERSION "\n"
@@ -408,6 +412,10 @@ query_all:
                        );
                        goto exit_factory;
                }
+               else if ( !strcmp( argv[ i ], "-debug" ) )
+               {
+                       mlt_log_set_level( MLT_LOG_DEBUG );
+               }
        }
 
        // Create profile if not set explicitly
@@ -518,6 +526,7 @@ query_all:
 "  -audio-track | -hide-video               Add an audio-only track\n"
 "  -blank frames                            Add blank silence to a track\n"
 "  -consumer id[:arg] [name=value]*         Set the consumer (sink)\n"
+"  -debug                                   Set the logging level to debug\n"
 "  -filter filter[:arg] [name=value]*       Add a filter to the current track\n"
 "  -group [name=value]*                     Apply properties repeatedly\n"
 "  -help                                    Show this message\n"
@@ -540,6 +549,7 @@ query_all:
 "  -swap                                    Rearrange the last two cuts\n"
 "  -track                                   Add a track\n"
 "  -transition id[:arg] [name=value]*       Add a transition\n"
+"  -verbose                                 Set the logging level to verbose\n"
 "  -version                                 Show the version and copyright message\n"
 "  -video-track | -hide-audio               Add a video-only track\n"
 "For more help: <http://www.mltframework.org/>\n" );