]> git.sesse.net Git - mlt/commitdiff
Fix build errors caused by the (hypothetical) conversion of mlt_position from an...
authordezeroex <dezeroex@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 15 Aug 2005 06:20:06 +0000 (06:20 +0000)
committerdezeroex <dezeroex@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 15 Aug 2005 06:20:06 +0000 (06:20 +0000)
preserving original behavior.

git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@799 d19143bc-622f-0410-bfdd-b5b2a6649095

src/inigo/inigo.c
src/modules/core/filter_luma.c
src/modules/motion_est/filter_crop_detect.c
src/modules/sdl/consumer_sdl.c

index cbc680e3f53865745cfffe4d51bd67f1048cce45..e97202ef1b8a9f5a064811ac91557a8f2561b7a0 100644 (file)
@@ -66,7 +66,7 @@ static void transport_action( mlt_producer producer, char *value )
                                                if ( time == last )
                                                        break;
                                                last = time;
-                                               fprintf( stderr, "%d: %d\n", i, time );
+                                               fprintf( stderr, "%d: %d\n", i, (int)time );
                                        }
                                }
                                break;
@@ -180,7 +180,7 @@ static void transport( mlt_producer producer, mlt_consumer consumer )
                                transport_action( producer, ( char * )&value );
 
                        if ( !silent && mlt_properties_get_int( properties, "stats_off" ) == 0 )
-                               fprintf( stderr, "Current Position: %10d\r", mlt_producer_position( producer ) );
+                               fprintf( stderr, "Current Position: %10d\r", (int)mlt_producer_position( producer ) );
 
                        if ( silent )
                                nanosleep( &tm, NULL );
index 22165af900b8500f17eac8a2522be8c79b2c07e9..00c11aef314cee52689c2ca9b513346974a98eb5 100644 (file)
@@ -66,7 +66,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
 
        if ( luma != NULL && 
                ( mlt_properties_get( properties, "blur" ) != NULL || 
-                 mlt_frame_get_position( this ) % ( out + 1 ) != out ) )
+                 (int)mlt_frame_get_position( this ) % ( out + 1 ) != out ) )
        {
                mlt_properties luma_properties = MLT_TRANSITION_PROPERTIES( luma );
                mlt_properties_pass( luma_properties, properties, "luma." );
index ef9f48fc70109da553efb66a4cea25abd80651ac..b47e30710c865430c71a888a378d95ddb0c18167 100644 (file)
@@ -75,7 +75,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
        }
 
        // For periodic detection (with offset of 'skip')
-       if( frequency == 0 || (mlt_frame_get_position(this)+skip) % frequency != 0)
+       if( frequency == 0 || (int)mlt_frame_get_position(this)+skip % frequency  != 0)
        {
 
                // Inject in stream 
index 577d205de9be9067a42e93e5bd96eca0422a2177..4bc6660f1bb71d94aa45115af861a60f129587d8 100644 (file)
@@ -593,10 +593,10 @@ static void *video_thread( void *arg )
                if ( mlt_properties_get_int( properties, "rendered" ) == 1 && this->running )
                {
                        // Obtain the scheduled playout time
-                       mlt_position scheduled = mlt_properties_get_position( properties, "playtime" );
+                       int64_t scheduled = mlt_properties_get_int( properties, "playtime" );
 
                        // Determine the difference between the elapsed time and the scheduled playout time
-                       mlt_position difference = scheduled - elapsed;
+                       int64_t difference = scheduled - elapsed;
 
                        // Smooth playback a bit
                        if ( real_time && ( difference > 20000 && speed == 1.0 ) )
@@ -714,7 +714,7 @@ static void *consumer_thread( void *arg )
                        }
 
                        // Set playtime for this frame
-                       mlt_properties_set_position( properties, "playtime", playtime );
+                       mlt_properties_set_int( properties, "playtime", playtime );
 
                        while ( this->running && mlt_deque_count( this->queue ) > 15 )
                                nanosleep( &tm, NULL );