value: add macro to check if a gvalue holds a sample

This commit is contained in:
Wim Taymans 2012-01-03 10:42:31 +01:00
parent 5b3fcd2fe2
commit 07952da04d

View file

@ -161,6 +161,14 @@ G_BEGIN_DECLS
*/
#define GST_VALUE_HOLDS_BUFFER(x) (G_VALUE_HOLDS((x), GST_TYPE_BUFFER))
/**
* GST_VALUE_HOLDS_SAMPLE:
* @x: the #GValue to check
*
* Checks if the given #GValue contains a #GST_TYPE_SAMPLE value.
*/
#define GST_VALUE_HOLDS_SAMPLE(x) (G_VALUE_HOLDS((x), GST_TYPE_SAMPLE))
/**
* GST_VALUE_HOLDS_FRACTION:
* @x: the #GValue to check