value: add macro to check if a gvalue holds a sample
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 3 Jan 2012 09:42:31 +0000 (10:42 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 3 Jan 2012 09:42:31 +0000 (10:42 +0100)
gst/gstvalue.h

index 8dc0098..6db9640 100644 (file)
@@ -162,6 +162,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
  *