X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Finigo%2Finigo.c;h=698908e7f6acdc4fa349e7dd08b9134c7243a7c1;hb=4fc3fa1bf4116848c423837437d75f103cdd0154;hp=204c647c37d53541dd5a750587219cc8454e7d0d;hpb=aab810fef400c746aed03095329edfa055bb173f;p=melted diff --git a/src/inigo/inigo.c b/src/inigo/inigo.c index 204c647..698908e 100644 --- a/src/inigo/inigo.c +++ b/src/inigo/inigo.c @@ -265,7 +265,7 @@ static void transport( mlt_producer producer, mlt_consumer consumer ) } } -static void query_metadata( mlt_repository repo, mlt_service_type type, char *typestr, char *id ) +static void query_metadata( mlt_repository repo, mlt_service_type type, const char *typestr, char *id ) { mlt_properties metadata = mlt_repository_metadata( repo, type, id ); if ( metadata ) @@ -283,7 +283,7 @@ static void query_metadata( mlt_repository repo, mlt_service_type type, char *ty static void query_services( mlt_repository repo, mlt_service_type type ) { mlt_properties services = NULL; - char *typestr = NULL; + const char *typestr = NULL; switch ( type ) { case consumer_type: @@ -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" @@ -526,21 +535,22 @@ query_all: " -mixer transition Add a transition to the mix\n" " -null-track | -hide-track Add a hidden track\n" " -profile name Set the processing settings\n" -" -progress Display progress along with the position\n" +" -progress Display progress along with position\n" " -remove Remove the most recent cut\n" " -repeat times Repeat the last cut\n" " -query List all of the registered services\n" " -query \"consumers\" | \"consumer\"=id List consumers or show info about one\n" " -query \"filters\" | \"filter\"=id List filters or show info about one\n" " -query \"producers\" | \"producer\"=id List producers or show info about one\n" -" -query \"transitions\" | \"transition\"=id List transitions or show info about one\n" +" -query \"transitions\" | \"transition\"=id List transitions, show info about one\n" " -serialise [filename] Write the commands to a text file\n" -" -silent Do not display position/transport help\n" +" -silent Do not display position/transport\n" " -split relative-frame Split the last cut into two cuts\n" " -swap Rearrange the last two cuts\n" " -track Add a track\n" " -transition id[:arg] [name=value]* Add a transition\n" -" -version Show the version and copyright message\n" +" -verbose Set the logging level to verbose\n" +" -version Show the version and copyright\n" " -video-track | -hide-audio Add a video-only track\n" "For more help: \n" ); }