New tractor constructor
[melted] / src / inigo / inigo.c
index acbd83e..41a0341 100644 (file)
@@ -64,7 +64,7 @@ static void transport_action( mlt_producer producer, char *value )
                                                if ( time == last )
                                                        break;
                                                last = time;
-                                               fprintf( stderr, "%d: %lld\n", i, time );
+                                               fprintf( stderr, "%d: %d\n", i, time );
                                        }
                                }
                                break;
@@ -168,7 +168,7 @@ static void transport( mlt_producer producer, mlt_consumer consumer )
                        transport_action( producer, ( char * )&value );
 
                if ( mlt_properties_get_int( properties, "stats_off" ) == 0 )
-                       fprintf( stderr, "Current Position: %10lld\r", mlt_producer_position( producer ) );
+                       fprintf( stderr, "Current Position: %10d\r", mlt_producer_position( producer ) );
        }
 
        fprintf( stderr, "\n" );
@@ -183,7 +183,7 @@ int main( int argc, char **argv )
        char *name = NULL;
 
        // Construct the factory
-       mlt_factory_init( getenv( "MLT_REPOSITORY" ) );
+       mlt_factory_init( NULL );
 
        // Check for serialisation switch first
        for ( i = 1; i < argc; i ++ )