]> git.sesse.net Git - mlt/blobdiff - src/modules/sdl/consumer_sdl.c
Fix calloc() parameter ordering
[mlt] / src / modules / sdl / consumer_sdl.c
index 1f8b9ce4e9f2b86936cf70647fdbd8bf4bd6d77a..4c9489cb6ba2ec71bd932bfd0af7cd6406c9c159 100644 (file)
@@ -87,7 +87,7 @@ static void consumer_sdl_event( mlt_listener listener, mlt_properties owner, mlt
 mlt_consumer consumer_sdl_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        // Create the consumer object
-       consumer_sdl this = calloc( sizeof( struct consumer_sdl_s ), 1 );
+       consumer_sdl this = calloc( 1, sizeof( struct consumer_sdl_s ) );
 
        // If no malloc'd and consumer init ok
        if ( this != NULL && mlt_consumer_init( &this->parent, this, profile ) == 0 )