X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_consumer.h;h=224570413c6cf87dfc0609e20b71fcfb5a6c773d;hb=7ecd47eeebf87332a4892d167baff959f0f6a11a;hp=f39fd9a5affc06272029e40d5b3eb6e0ea04fc03;hpb=bf3264b9e340ba5c11cbf59835a8af3db94e0cc2;p=melted diff --git a/src/framework/mlt_consumer.h b/src/framework/mlt_consumer.h index f39fd9a..2245704 100644 --- a/src/framework/mlt_consumer.h +++ b/src/framework/mlt_consumer.h @@ -1,7 +1,9 @@ -/* - * mlt_consumer.h -- abstraction for all consumer services - * Copyright (C) 2003-2004 Ushodaya Enterprises Limited - * Author: Charles Yates +/** + * \file mlt_consumer.h + * \brief abstraction for all consumer services + * + * Copyright (C) 2003-2008 Ushodaya Enterprises Limited + * \author Charles Yates * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -22,10 +24,13 @@ #define _MLT_CONSUMER_H_ #include "mlt_service.h" +#include "mlt_events.h" #include -/** The interface definition for all consumers. -*/ +/** \brief Consumer abstract service class + * + * \extends mlt_service_s + */ struct mlt_consumer_s { @@ -53,16 +58,14 @@ struct mlt_consumer_s pthread_cond_t put_cond; mlt_frame put; int put_active; + mlt_event event_listener; }; -/** Public final methods -*/ - #define MLT_CONSUMER_SERVICE( consumer ) ( &( consumer )->parent ) #define MLT_CONSUMER_PROPERTIES( consumer ) MLT_SERVICE_PROPERTIES( MLT_CONSUMER_SERVICE( consumer ) ) -extern int mlt_consumer_init( mlt_consumer self, void *child ); -extern mlt_consumer mlt_consumer_new( ); +extern int mlt_consumer_init( mlt_consumer self, void *child, mlt_profile profile ); +extern mlt_consumer mlt_consumer_new( mlt_profile profile ); extern mlt_service mlt_consumer_service( mlt_consumer self ); extern mlt_properties mlt_consumer_properties( mlt_consumer self ); extern int mlt_consumer_connect( mlt_consumer self, mlt_service producer ); @@ -75,6 +78,5 @@ extern int mlt_consumer_stop( mlt_consumer self ); extern int mlt_consumer_is_stopped( mlt_consumer self ); extern void mlt_consumer_stopped( mlt_consumer self ); extern void mlt_consumer_close( mlt_consumer ); -extern int mlt_consumer_profile( mlt_properties properties, char *profile ); #endif