]> git.sesse.net Git - mlt/commitdiff
Clean up - added new usage options
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 26 Sep 2004 19:39:07 +0000 (19:39 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sun, 26 Sep 2004 19:39:07 +0000 (19:39 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@450 d19143bc-622f-0410-bfdd-b5b2a6649095

src/inigo/inigo.c

index b1f3e04cb81282fbf6512645bd4be36c958c4756..b29df7030da9f7924c0a70bdb4f3534accf34dcd 100644 (file)
@@ -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