projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b3fcd2
)
value: add macro to check if a gvalue holds a sample
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 3 Jan 2012 09:42:31 +0000
(10:42 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Tue, 3 Jan 2012 09:42:31 +0000
(10:42 +0100)
gst/gstvalue.h
patch
|
blob
|
history
diff --git
a/gst/gstvalue.h
b/gst/gstvalue.h
index
8dc0098
..
6db9640
100644
(file)
--- 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
*