]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_rescale.c
remove usage of normalised_width and _height properties from services
[mlt] / src / modules / core / filter_rescale.c
index c1e8b6cb513674a43106b075986128c038700783..0f9bb9701770f4e1b58feffeef200c93c03e4888 100644 (file)
@@ -21,6 +21,7 @@
 #include <framework/mlt_filter.h>
 #include <framework/mlt_frame.h>
 #include <framework/mlt_log.h>
+#include <framework/mlt_profile.h>
 
 #include <stdio.h>
 #include <string.h>
@@ -160,8 +161,9 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format
        // Correct Width/height if necessary
        if ( *width == 0 || *height == 0 )
        {
-               *width = mlt_properties_get_int( properties, "normalised_width" );
-               *height = mlt_properties_get_int( properties, "normalised_height" );
+               mlt_profile profile = mlt_service_profile( MLT_FILTER_SERVICE( filter ) );
+               *width = profile->width;
+               *height = profile->height;
        }
 
        // There can be problems with small images - avoid them (by hacking - gah)