X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_consumer.c;h=2a05df19658ea364558f57c3bf11af68b4059e56;hb=f9c7e4e64fe57451a17ef25a727c8d3387ee1737;hp=5249d9fcf4f08cdc46fdb5ca65ea49ddb589ac1c;hpb=3544a004b42ec88fa0d1ef95733b875d7071ffcf;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. */