]> git.sesse.net Git - mlt/blobdiff - src/modules/valerie/consumer_valerie.c
framework: remove global profile, rather share one mlt_profile across a service netwo...
[mlt] / src / modules / valerie / consumer_valerie.c
index 76a8a1c1901bb9024b5df9e9951333b81f6d29ca..4d4c9a34b8ddc2c9a3d9f1f3670f6e714c22ddff 100644 (file)
@@ -18,7 +18,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include "consumer_valerie.h"
 #include <valerie/valerie.h>
 #include <valerie/valerie_remote.h>
 #include <framework/mlt.h>
@@ -34,13 +33,13 @@ static int consumer_start( mlt_consumer this );
 /** This is what will be called by the factory
 */
 
-mlt_consumer consumer_valerie_init( char *arg )
+mlt_consumer consumer_valerie_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
 {
        // Create the consumer object
        mlt_consumer this = calloc( sizeof( struct mlt_consumer_s ), 1 );
 
        // If no malloc'd and consumer init ok
-       if ( this != NULL && mlt_consumer_init( this, NULL ) == 0 )
+       if ( this != NULL && mlt_consumer_init( this, NULL, profile ) == 0 )
        {
                if ( arg != NULL && strchr( arg, ':' ) )
                {