From 2ffcb9719b9f3965f8e9daad58bed80455ec7eff Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Sun, 26 Sep 2004 19:39:07 +0000 Subject: [PATCH] Clean up - added new usage options git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@450 d19143bc-622f-0410-bfdd-b5b2a6649095 --- src/inigo/inigo.c | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/inigo/inigo.c b/src/inigo/inigo.c index b1f3e04..b29df70 100644 --- a/src/inigo/inigo.c +++ b/src/inigo/inigo.c @@ -159,19 +159,19 @@ static void transport( mlt_producer producer, mlt_consumer consumer ) fprintf( stderr, "| g = start of clip, j = next clip, k = previous clip |\n" ); fprintf( stderr, "| 0 = restart, q = quit, space = play |\n" ); fprintf( stderr, "+---------------------------------------------------------------------+\n" ); - } - while( mlt_properties_get_int( properties, "done" ) == 0 && !mlt_consumer_is_stopped( consumer ) ) - { - int value = term_read( ); - if ( value != -1 ) - transport_action( producer, ( char * )&value ); + while( mlt_properties_get_int( properties, "done" ) == 0 && !mlt_consumer_is_stopped( consumer ) ) + { + int value = term_read( ); + if ( value != -1 ) + transport_action( producer, ( char * )&value ); + + if ( mlt_properties_get_int( properties, "stats_off" ) == 0 ) + fprintf( stderr, "Current Position: %10d\r", mlt_producer_position( producer ) ); + } - if ( mlt_properties_get_int( properties, "stats_off" ) == 0 ) - fprintf( stderr, "Current Position: %10d\r", mlt_producer_position( producer ) ); + fprintf( stderr, "\n" ); } - - fprintf( stderr, "\n" ); } int main( int argc, char **argv ) @@ -271,13 +271,16 @@ int main( int argc, char **argv ) { fprintf( stderr, "Usage: inigo [ -group [ name=value ]* ]\n" " [ -consumer id[:arg] [ name=value ]* ]\n" - " [ -filter filter[:arg] [ name=value ] * ]\n" - " [ -attach filter[:arg] [ name=value ] * ]\n" + " [ -filter filter[:arg] [ name=value ] * ]\n" + " [ -attach filter[:arg] [ name=value ] * ]\n" " [ -mix length [ -mixer transition ]* ]\n" - " [ -transition id[:arg] [ name=value ] * ]\n" + " [ -transition id[:arg] [ name=value ] * ]\n" " [ -blank frames ]\n" " [ -track ]\n" - " [ producer [ name=value ] * ]+\n" ); + " [ -split relative-frame ]\n" + " [ -join clips ]\n" + " [ -repeat times ]\n" + " [ producer [ name=value ] * ]+\n" ); } // Close the consumer -- 1.7.4.4