From: Wim Taymans Date: Fri, 15 Jul 2011 09:52:22 +0000 (+0200) Subject: bufferpool: add macro to check for flushing X-Git-Tag: RELEASE-0.11.0~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f429009a32f3fd6b0b273ceccea5e52b9551957;p=platform%2Fupstream%2Fgstreamer.git bufferpool: add macro to check for flushing --- diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index 410c8c3..e487a31 100644 --- a/gst/gstbufferpool.c +++ b/gst/gstbufferpool.c @@ -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. * diff --git a/gst/gstbufferpool.h b/gst/gstbufferpool.h index b71b1ed..fed431a 100644 --- a/gst/gstbufferpool.h +++ b/gst/gstbufferpool.h @@ -85,6 +85,15 @@ typedef struct _GstBufferPoolParams { } 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 *