mlt_repository.c: clear up warning due to const return from getenv_locale()
[melted] / src / framework / mlt_tractor.c
index 45caa62..9ab3d8b 100644 (file)
@@ -18,8 +18,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include "config.h"
-
 #include "mlt_tractor.h"
 #include "mlt_frame.h"
 #include "mlt_multitrack.h"
@@ -205,7 +203,7 @@ static int producer_get_image( mlt_frame this, uint8_t **buffer, mlt_image_forma
        mlt_frame frame = mlt_frame_pop_service( this );
        mlt_properties frame_properties = MLT_FRAME_PROPERTIES( frame );
        mlt_properties_set( frame_properties, "rescale.interp", mlt_properties_get( properties, "rescale.interp" ) );
-       mlt_properties_set_int( frame_properties, "rescale_alpha", mlt_properties_get_int( properties, "resize_alpha" ) );
+       mlt_properties_set_int( frame_properties, "resize_alpha", mlt_properties_get_int( properties, "resize_alpha" ) );
        mlt_properties_set_int( frame_properties, "distort", mlt_properties_get_int( properties, "distort" ) );
        mlt_properties_set_double( frame_properties, "consumer_aspect_ratio", mlt_properties_get_double( properties, "consumer_aspect_ratio" ) );
        mlt_properties_set_int( frame_properties, "consumer_deinterlace", mlt_properties_get_int( properties, "consumer_deinterlace" ) );
@@ -311,7 +309,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra
                        mlt_producer_set_speed( target, mlt_producer_get_speed( parent ) );
 
                        // We will create one frame and attach everything to it
-                       *frame = mlt_frame_init( );
+                       *frame = mlt_frame_init( MLT_PRODUCER_SERVICE( parent ) );
 
                        // Get the properties of the frame
                        frame_properties = MLT_FRAME_PROPERTIES( *frame );
@@ -454,7 +452,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int tra
        else
        {
                // Generate a test card
-               *frame = mlt_frame_init( );
+               *frame = mlt_frame_init( MLT_PRODUCER_SERVICE( parent ) );
                return 0;
        }
 }