X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fvmfx%2Fproducer_pgm.c;h=6713317cff4a1de08aac8922c40f1f9cb0a75abe;hb=93ba5329ea2cadd2ce01b4cceb20f1309fd37bed;hp=369f6d9e21e0e7244eac0bdc8ca9269e600eb631;hpb=6ce35f4e77ab6f0c32c3e2c0f39d77bafbc493a1;p=melted diff --git a/src/modules/vmfx/producer_pgm.c b/src/modules/vmfx/producer_pgm.c index 369f6d9..6713317 100644 --- a/src/modules/vmfx/producer_pgm.c +++ b/src/modules/vmfx/producer_pgm.c @@ -4,21 +4,21 @@ * 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 + * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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. + * GNU Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License + * You should have received a copy of the GNU Lesser 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. */ -#include "producer_pgm.h" +#include #include #include #include @@ -27,7 +27,7 @@ static int read_pgm( char *name, uint8_t **image, int *width, int *height, int * static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int index ); static void producer_close( mlt_producer parent ); -mlt_producer producer_pgm_init( void *resource ) +mlt_producer producer_pgm_init( mlt_profile profile, mlt_service_type type, const char *id, char *resource ) { mlt_producer this = NULL; uint8_t *image = NULL; @@ -177,7 +177,7 @@ static int producer_get_image( mlt_frame this, uint8_t **buffer, mlt_image_forma static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int index ) { // Construct a test frame - *frame = mlt_frame_init( ); + *frame = mlt_frame_init( MLT_PRODUCER_SERVICE( producer ) ); // Get the frames properties mlt_properties properties = MLT_FRAME_PROPERTIES( *frame );