X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_region.c;h=8fd8e8d6ab84e78a236e06dd2c58471471c39b04;hb=840ed660f312a32a1b5e15530bf6a79c7f7c3cb9;hp=1e7ad17aed13e086db983739f292b4d6baaf8bd7;hpb=f00476101550ec7d8e863f6516aa83bc1b524570;p=melted diff --git a/src/modules/core/filter_region.c b/src/modules/core/filter_region.c index 1e7ad17..8fd8e8d 100644 --- a/src/modules/core/filter_region.c +++ b/src/modules/core/filter_region.c @@ -3,24 +3,24 @@ * Copyright (C) 2003-2004 Ushodaya Enterprises Limited * Author: Charles Yates * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "filter_region.h" #include "transition_region.h" +#include #include #include @@ -42,7 +42,8 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) if ( transition == NULL ) { // Create the transition - transition = mlt_factory_transition( "region", NULL ); + mlt_profile profile = mlt_service_profile( MLT_FILTER_SERVICE( this ) ); + transition = mlt_factory_transition( profile, "region", NULL ); // Register with the filter mlt_properties_set_data( properties, "_transition", transition, 0, ( mlt_destructor )mlt_transition_close, NULL ); @@ -61,7 +62,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame ) /** Constructor for the filter. */ -mlt_filter filter_region_init( void *arg ) +mlt_filter filter_region_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { // Create a new filter mlt_filter this = mlt_filter_new( );