default mix to 0.5
[melted] / src / framework / mlt_playlist.c
index 921bbd5..8bdbe4b 100644 (file)
@@ -81,6 +81,7 @@ mlt_playlist mlt_playlist_init( )
 
                // Specify the eof condition
                mlt_properties_set( mlt_playlist_properties( this ), "eof", "pause" );
+               mlt_properties_set( mlt_playlist_properties( this ), "resource", "<playlist>" );
        }
        
        return this;
@@ -149,7 +150,7 @@ static int mlt_playlist_virtual_refresh( mlt_playlist this )
        mlt_properties_set_double( mlt_playlist_properties( this ), "first_fps", fps );
        mlt_properties_set_double( mlt_playlist_properties( this ), "fps", fps == 0 ? 25 : fps );
        mlt_properties_set_position( mlt_playlist_properties( this ), "length", frame_count );
-       mlt_properties_set_position( mlt_playlist_properties( this ), "out", frame_count );
+       mlt_properties_set_position( mlt_playlist_properties( this ), "out", frame_count - 1 );
 
        return 0;
 }
@@ -175,6 +176,8 @@ static int mlt_playlist_virtual_append( mlt_playlist this, mlt_producer producer
        this->list[ this->count ]->frame_out = out;
        this->list[ this->count ]->frame_count = out - in + 1;
 
+       mlt_properties_set( mlt_producer_properties( producer ), "eof", "continue" );
+
        mlt_producer_set_speed( producer, 0 );
 
        this->count ++;