Increased delay for polling
[melted] / src / framework / mlt_producer.c
index f29f4c5..17945f7 100644 (file)
@@ -78,12 +78,12 @@ int mlt_producer_init( mlt_producer this, void *child )
                        if ( normalisation == NULL || strcmp( normalisation, "NTSC" ) )
                        {
                                mlt_properties_set_double( properties, "fps", 25.0 );
-                               mlt_properties_set_double( properties, "aspect_ratio", 72.0 / 79.0 );
+                               mlt_properties_set_double( properties, "aspect_ratio", 59.0 / 54.0 );
                        }
                        else
                        {
                                mlt_properties_set_double( properties, "fps", 30000.0 / 1001.0 );
-                               mlt_properties_set_double( properties, "aspect_ratio", 128.0 / 117.0 );
+                               mlt_properties_set_double( properties, "aspect_ratio", 10.0 / 11.0 );
                        }
                        mlt_properties_set_double( properties, "_speed", 1.0 );
                        mlt_properties_set_position( properties, "in", 0 );
@@ -445,6 +445,9 @@ static int producer_get_frame( mlt_service service, mlt_frame_ptr frame, int ind
        }
        else
        {
+               // Get the speed of the cut
+               double speed = mlt_producer_get_speed( this );
+
                // Get the parent of this cut
                mlt_producer parent = mlt_producer_cut_parent( this );
 
@@ -484,6 +487,9 @@ static int producer_get_frame( mlt_service service, mlt_frame_ptr frame, int ind
 
                // We're done with the clone now
                mlt_properties_set_data( parent_properties, "use_clone", NULL, 0, NULL, NULL );
+
+               mlt_properties_set_double( mlt_frame_properties( *frame ), "_speed", speed );
+               mlt_producer_prepare_next( this );
        }
 
        return result;
@@ -524,16 +530,7 @@ static mlt_producer mlt_producer_clone( mlt_producer this )
        char *service = mlt_properties_get( properties, "mlt_service" );
 
        if ( service != NULL )
-       {
-               char temp[ 1024 ];
-               strncpy( temp, service, 1024 );
-               if ( resource != NULL )
-               {
-                       strcat( temp, ":" );
-                       strncat( temp, resource, 1023 - strlen( temp ) );
-               }
-               clone = mlt_factory_producer( "fezzik", temp );
-       }
+               clone = mlt_factory_producer( service, resource );
 
        if ( clone == NULL && resource != NULL )
                clone = mlt_factory_producer( "fezzik", resource );