X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fqimage%2Fproducer_qimage.c;h=6008b7e6ef53fb663bd3194d053516d0ace84d2f;hb=8491eda0036ad9de4255eff05468f93c3cebd95b;hp=e172def38a1917cf9899b35b4af0df6193a43e1b;hpb=bf3264b9e340ba5c11cbf59835a8af3db94e0cc2;p=melted diff --git a/src/modules/qimage/producer_qimage.c b/src/modules/qimage/producer_qimage.c index e172def..6008b7e 100644 --- a/src/modules/qimage/producer_qimage.c +++ b/src/modules/qimage/producer_qimage.c @@ -21,7 +21,7 @@ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "producer_qimage.h" +#include #include "qimage_wrapper.h" #include @@ -35,7 +35,7 @@ static int producer_get_frame( mlt_producer parent, mlt_frame_ptr frame, int index ); static void producer_close( mlt_producer parent ); -mlt_producer producer_qimage_init( char *filename ) +mlt_producer producer_qimage_init( mlt_profile profile, mlt_service_type type, const char *id, char *filename ) { producer_qimage this = calloc( sizeof( struct producer_qimage_s ), 1 ); if ( this != NULL && mlt_producer_init( &this->parent, this ) == 0 ) @@ -46,6 +46,7 @@ mlt_producer producer_qimage_init( char *filename ) mlt_properties properties = MLT_PRODUCER_PROPERTIES( &this->parent ); // Callback registration + init_qimage(); producer->get_frame = producer_get_frame; producer->close = ( mlt_destructor )producer_close; @@ -240,7 +241,7 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i } // Generate a frame - *frame = mlt_frame_init( ); + *frame = mlt_frame_init( MLT_PRODUCER_SERVICE( producer ) ); if ( *frame != NULL && this->count > 0 ) {