]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_consumer.h
Make mlt_consumer_purge() more thorough. (SF-187)
[mlt] / src / framework / mlt_consumer.h
index c76c0e89f4ae5cd51e50a8efcc5cf57c11473fe2..e4415516b363747f5ea01eb8943f6335edf89f8a 100644 (file)
@@ -102,6 +102,12 @@ struct mlt_consumer_s
         */
        int ( *is_stopped )( mlt_consumer );
 
+       /** Purge the consumer of buffered data (virtual function).
+        *
+        * \param mlt_consumer a consumer
+        */
+       void ( *purge )( mlt_consumer );
+
        /** The destructor virtual function
         *
         * \param mlt_consumer a consumer
@@ -124,6 +130,7 @@ struct mlt_consumer_s
        int put_active;
        mlt_event event_listener;
        mlt_position position;
+       int is_purge;
 
        /* additional fields added for the parallel work queue */
        mlt_deque worker_threads;