Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Greyscale cleanup

  • Loading branch information...
commit 30e1f1f52619f702395ba43dad102e3b8ba3a83e 1 parent a5b9ddb
@jliljebl jliljebl authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/modules/core/filter_greyscale.c
View
14 src/modules/core/filter_greyscale.c
@@ -27,10 +27,10 @@
/** Do it :-).
*/
-static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
+static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
{
*format = mlt_image_yuv422;
- int error = mlt_frame_get_image( this, image, format, width, height, 1 );
+ int error = mlt_frame_get_image( frame, image, format, width, height, 1 );
if ( error == 0 )
{
uint8_t *p = *image;
@@ -44,7 +44,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
/** Filter processing.
*/
-static mlt_frame filter_process( mlt_filter this, mlt_frame frame )
+static mlt_frame filter_process( mlt_filter filter, mlt_frame frame )
{
mlt_frame_push_get_image( frame, filter_get_image );
return frame;
@@ -55,9 +55,9 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame )
mlt_filter filter_greyscale_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
- mlt_filter this = mlt_filter_new( );
- if ( this != NULL )
- this->process = filter_process;
- return this;
+ mlt_filter filter = mlt_filter_new( );
+ if ( filter != NULL )
+ filter->process = filter_process;
+ return filter;
}
Please sign in to comment.
Something went wrong with that request. Please try again.