X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_consumer.c;h=2a05df19658ea364558f57c3bf11af68b4059e56;hb=380ba25c38651c7bbbe6bbefe5091e3b8fd9b1b4;hp=5249d9fcf4f08cdc46fdb5ca65ea49ddb589ac1c;hpb=b9dbda40ec64f1d4f58e7da87125d38aa3ab54d1;p=melted diff --git a/src/framework/mlt_consumer.c b/src/framework/mlt_consumer.c index 5249d9f..2a05df1 100644 --- a/src/framework/mlt_consumer.c +++ b/src/framework/mlt_consumer.c @@ -77,6 +77,22 @@ int mlt_consumer_init( mlt_consumer this, void *child ) return error; } +/** Create a new consumer. +*/ + +mlt_consumer mlt_consumer_new( ) +{ + // Create the memory for the structure + mlt_consumer this = malloc( sizeof( struct mlt_consumer_s ) ); + + // Initialise it + if ( this != NULL ) + mlt_consumer_init( this, NULL ); + + // Return it + return this; +} + /** Get the parent service object. */