]> git.sesse.net Git - mlt/blobdiff - src/modules/core/filter_mirror.c
Remove unused string.h include
[mlt] / src / modules / core / filter_mirror.c
index 9608d2b48fdc57573a15f15595114c472519ebaf..813aeef87b54b72593ae734b40f28fe449418b21 100644 (file)
@@ -18,8 +18,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include "filter_mirror.h"
-
+#include <framework/mlt_filter.h>
 #include <framework/mlt_frame.h>
 
 #include <stdio.h>
@@ -44,13 +43,14 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format
        int reverse = mlt_properties_get_int( properties, "reverse" );
 
        // Get the image
+       *format = mlt_image_yuv422;
        int error = mlt_frame_get_image( frame, image, format, width, height, 1 );
 
        // Get the alpha
        uint8_t *alpha = mlt_frame_get_alpha_mask( frame );
 
        // If we have an image of the right colour space
-       if ( error == 0 && *format == mlt_image_yuv422 )
+       if ( error == 0 )
        {
                // We'll KISS here
                int hh = *height / 2;
@@ -312,7 +312,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame )
 /** Constructor for the filter.
 */
 
-mlt_filter filter_mirror_init( void *arg )
+mlt_filter filter_mirror_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        // Construct a new filter
        mlt_filter this = mlt_filter_new( );