X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fgtk2%2Fconsumer_gtk2.c;h=dc1619e334ede17dc62b42225a76a04f37822f20;hb=c54a5c51667c3f83bdfe951574e3dff768284455;hp=b8689a39676260ac16f215266e2b3aecb16c0c30;hpb=f00476101550ec7d8e863f6516aa83bc1b524570;p=melted diff --git a/src/modules/gtk2/consumer_gtk2.c b/src/modules/gtk2/consumer_gtk2.c index b8689a3..dc1619e 100644 --- a/src/modules/gtk2/consumer_gtk2.c +++ b/src/modules/gtk2/consumer_gtk2.c @@ -3,30 +3,29 @@ * 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 "consumer_gtk2.h" - #include #include #include #include #include +#include -mlt_consumer consumer_gtk2_preview_init( GtkWidget *widget ) +mlt_consumer consumer_gtk2_preview_init( mlt_profile profile, GtkWidget *widget ) { // Create an sdl preview consumer mlt_consumer consumer = NULL; @@ -41,7 +40,7 @@ mlt_consumer consumer_gtk2_preview_init( GtkWidget *widget ) } // Create an sdl preview consumer - consumer = mlt_factory_consumer( "sdl_preview", NULL ); + consumer = mlt_factory_consumer( profile, "sdl_preview", NULL ); // Now assign the lock/unlock callbacks if ( consumer != NULL )