mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
value: add macro to check if a gvalue holds a sample
This commit is contained in:
parent
5b3fcd2fe2
commit
07952da04d
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue