]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_tractor.c
Refactor to use mlt_frame_set_image/_alpha.
[mlt] / src / framework / mlt_tractor.c
index 235bbe016f9dcf0ae7ff7828633247c6fb7b29bb..e509fe2795cdda99c918a03180b75810414c91f9 100644 (file)
@@ -273,7 +273,7 @@ static int producer_get_image( mlt_frame self, uint8_t **buffer, mlt_image_forma
        mlt_properties_set_int( frame_properties, "normalised_width", mlt_properties_get_int( properties, "normalised_width" ) );
        mlt_properties_set_int( frame_properties, "normalised_height", mlt_properties_get_int( properties, "normalised_height" ) );
        mlt_frame_get_image( frame, buffer, format, width, height, writable );
-       mlt_properties_set_data( properties, "image", *buffer, 0, NULL, NULL );
+       mlt_frame_set_image( self, *buffer, 0, NULL );
        mlt_properties_set_int( properties, "width", *width );
        mlt_properties_set_int( properties, "height", *height );
        mlt_properties_set_int( properties, "format", *format );
@@ -284,7 +284,7 @@ static int producer_get_image( mlt_frame self, uint8_t **buffer, mlt_image_forma
        mlt_properties_set_int( properties, "force_full_luma", mlt_properties_get_int( frame_properties, "force_full_luma" ) );
        data = mlt_frame_get_alpha_mask( frame );
        mlt_properties_get_data( frame_properties, "alpha", &size );
-       mlt_properties_set_data( properties, "alpha", data, size, NULL, NULL );
+       mlt_frame_set_alpha( self, data, size, NULL );
        self->convert_image = frame->convert_image;
        self->convert_audio = frame->convert_audio;
        return 0;