[0.11] gstreamer: value: add macro to check if a gvalue holds a sample

Wim Taymans wtay at kemper.freedesktop.org
Tue Jan 3 01:42:53 PST 2012


Module: gstreamer
Branch: 0.11
Commit: 07952da04dd520f5502ae58dd6ce3e9f9765f1e1
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=07952da04dd520f5502ae58dd6ce3e9f9765f1e1

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Jan  3 10:42:31 2012 +0100

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

---

 gst/gstvalue.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gst/gstvalue.h b/gst/gstvalue.h
index 8dc0098..6db9640 100644
--- a/gst/gstvalue.h
+++ b/gst/gstvalue.h
@@ -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
  *



More information about the gstreamer-commits mailing list