make install fix
[melted] / src / inigo / inigo.c
index 76edbc9..563371a 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" );
@@ -205,9 +205,6 @@ int main( int argc, char **argv )
                // Get inigo's properties
                mlt_properties inigo_props = mlt_producer_properties( inigo );
 
-               // Get the field service from inigo
-               mlt_field field = mlt_properties_get_data( inigo_props, "field", 0 );
-
                // Get the last group
                mlt_properties group = mlt_properties_get_data( inigo_props, "group", 0 );
 
@@ -252,8 +249,8 @@ int main( int argc, char **argv )
                        mlt_properties properties = mlt_consumer_properties( consumer );
                        mlt_properties_inherit( properties, group );
 
-                       // Connect consumer to tractor
-                       mlt_consumer_connect( consumer, mlt_field_service( field ) );
+                       // Connect consumer to inigo
+                       mlt_consumer_connect( consumer, mlt_producer_service( inigo ) );
 
                        // Start the consumer
                        mlt_consumer_start( consumer );