bufferpool: add macro to check for flushing

This commit is contained in:
Wim Taymans 2011-07-15 11:52:22 +02:00
parent cc16dd8498
commit 2f429009a3
2 changed files with 10 additions and 1 deletions

View file

@ -397,7 +397,7 @@ wrong_config:
* allocated form this pool must be returned or else this function will do
* nothing and return FALSE.
*
* @condfig is a #GstStructure that contains the configuration parameters for
* @config is a #GstStructure that contains the configuration parameters for
* the pool. A default and mandatory set of parameters can be configured with
* gst_buffer_pool_config_set(). This function takes ownership of @config.
*

View file

@ -84,6 +84,15 @@ typedef struct _GstBufferPoolParams {
GstBufferPoolFlags flags;
} GstBufferPoolParams;
/**
* GST_BUFFER_POOL_IS_FLUSHING:
* @pool: a GstBufferPool
*
* Check if the bufferpool is flushing. Subclasses might want to check the
* state of the pool in the acquire function.
*/
#define GST_BUFFER_POOL_IS_FLUSHING(pool) (g_atomic_int_get (&pool->flushing))
/**
* GstBufferPool:
* @object: the parent structure