X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_consumer.h;h=d05d307d3858704e99183d7f51d492213ecde085;hb=7cef152403bfa0ea30e4a3e102fe33bc75e508ab;hp=2439b970bf0d550c06a2a367e64fb063c983a472;hpb=f44c1d4653f43c8e7a63e6c3895f6f1f0ee0103b;p=melted diff --git a/src/framework/mlt_consumer.h b/src/framework/mlt_consumer.h index 2439b97..d05d307 100644 --- a/src/framework/mlt_consumer.h +++ b/src/framework/mlt_consumer.h @@ -49,6 +49,9 @@ struct mlt_consumer_s pthread_t ahead_thread; pthread_mutex_t mutex; pthread_cond_t cond; + pthread_mutex_t put_mutex; + pthread_cond_t put_cond; + mlt_frame put; }; /** Public final methods @@ -61,6 +64,7 @@ extern mlt_properties mlt_consumer_properties( mlt_consumer self ); extern int mlt_consumer_connect( mlt_consumer self, mlt_service producer ); extern int mlt_consumer_start( mlt_consumer self ); extern void mlt_consumer_purge( mlt_consumer self ); +extern int mlt_consumer_put_frame( mlt_consumer self, mlt_frame frame ); extern mlt_frame mlt_consumer_get_frame( mlt_consumer self ); extern mlt_frame mlt_consumer_rt_frame( mlt_consumer self ); extern int mlt_consumer_stop( mlt_consumer self );