mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
bufferpool: add macro to check for flushing
This commit is contained in:
parent
cc16dd8498
commit
2f429009a3
2 changed files with 10 additions and 1 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue