mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
[gstvalue] adds safety parenthesis to macros missing them.
This commit is contained in:
parent
69a1a60a87
commit
f2890f46a5
1 changed files with 13 additions and 13 deletions
|
@ -41,7 +41,7 @@ G_BEGIN_DECLS
|
|||
* </programlisting>
|
||||
* </informalexample>
|
||||
*/
|
||||
#define GST_MAKE_FOURCC(a,b,c,d) (guint32)((a)|(b)<<8|(c)<<16|(d)<<24)
|
||||
#define GST_MAKE_FOURCC(a,b,c,d) ((guint32)((a)|(b)<<8|(c)<<16|(d)<<24))
|
||||
|
||||
/**
|
||||
* GST_STR_FOURCC:
|
||||
|
@ -57,7 +57,7 @@ G_BEGIN_DECLS
|
|||
* </programlisting>
|
||||
* </informalexample>
|
||||
*/
|
||||
#define GST_STR_FOURCC(f) (guint32)(((f)[0])|((f)[1]<<8)|((f)[2]<<16)|((f)[3]<<24))
|
||||
#define GST_STR_FOURCC(f) ((guint32)(((f)[0])|((f)[1]<<8)|((f)[2]<<16)|((f)[3]<<24)))
|
||||
|
||||
/**
|
||||
* GST_FOURCC_FORMAT:
|
||||
|
@ -91,7 +91,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_FOURCC value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_FOURCC(x) (G_VALUE_HOLDS(x, gst_fourcc_get_type ()))
|
||||
#define GST_VALUE_HOLDS_FOURCC(x) (G_VALUE_HOLDS((x), gst_fourcc_get_type ()))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_INT_RANGE:
|
||||
|
@ -99,7 +99,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_INT_RANGE value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_INT_RANGE(x) (G_VALUE_HOLDS(x, gst_int_range_get_type ()))
|
||||
#define GST_VALUE_HOLDS_INT_RANGE(x) (G_VALUE_HOLDS((x), gst_int_range_get_type ()))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_DOUBLE_RANGE:
|
||||
|
@ -107,7 +107,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_DOUBLE_RANGE value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_DOUBLE_RANGE(x) (G_VALUE_HOLDS(x, gst_double_range_get_type ()))
|
||||
#define GST_VALUE_HOLDS_DOUBLE_RANGE(x) (G_VALUE_HOLDS((x), gst_double_range_get_type ()))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_FRACTION_RANGE:
|
||||
|
@ -115,7 +115,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_FRACTION_RANGE value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_FRACTION_RANGE(x) (G_VALUE_HOLDS(x, gst_fraction_range_get_type ()))
|
||||
#define GST_VALUE_HOLDS_FRACTION_RANGE(x) (G_VALUE_HOLDS((x), gst_fraction_range_get_type ()))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_LIST:
|
||||
|
@ -123,7 +123,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_LIST value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_LIST(x) (G_VALUE_HOLDS(x, gst_value_list_get_type ()))
|
||||
#define GST_VALUE_HOLDS_LIST(x) (G_VALUE_HOLDS((x), gst_value_list_get_type ()))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_ARRAY:
|
||||
|
@ -131,7 +131,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_ARRAY value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_ARRAY(x) (G_VALUE_HOLDS(x, gst_value_array_get_type ()))
|
||||
#define GST_VALUE_HOLDS_ARRAY(x) (G_VALUE_HOLDS((x), gst_value_array_get_type ()))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_CAPS:
|
||||
|
@ -139,7 +139,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_CAPS value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_CAPS(x) (G_VALUE_HOLDS(x, GST_TYPE_CAPS))
|
||||
#define GST_VALUE_HOLDS_CAPS(x) (G_VALUE_HOLDS((x), GST_TYPE_CAPS))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_STRUCTURE:
|
||||
|
@ -149,7 +149,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Since: 0.10.15
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_STRUCTURE(x) (G_VALUE_HOLDS(x, GST_TYPE_STRUCTURE))
|
||||
#define GST_VALUE_HOLDS_STRUCTURE(x) (G_VALUE_HOLDS((x), GST_TYPE_STRUCTURE))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_BUFFER:
|
||||
|
@ -157,7 +157,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_BUFFER value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_BUFFER(x) (G_VALUE_HOLDS(x, GST_TYPE_BUFFER))
|
||||
#define GST_VALUE_HOLDS_BUFFER(x) (G_VALUE_HOLDS((x), GST_TYPE_BUFFER))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_FRACTION:
|
||||
|
@ -165,7 +165,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_FRACTION value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_FRACTION(x) (G_VALUE_HOLDS(x, gst_fraction_get_type ()))
|
||||
#define GST_VALUE_HOLDS_FRACTION(x) (G_VALUE_HOLDS((x), gst_fraction_get_type ()))
|
||||
|
||||
/**
|
||||
* GST_VALUE_HOLDS_DATE:
|
||||
|
@ -173,7 +173,7 @@ G_BEGIN_DECLS
|
|||
*
|
||||
* Checks if the given #GValue contains a #GST_TYPE_DATE value.
|
||||
*/
|
||||
#define GST_VALUE_HOLDS_DATE(x) (G_VALUE_HOLDS(x, gst_date_get_type ()))
|
||||
#define GST_VALUE_HOLDS_DATE(x) (G_VALUE_HOLDS((x), gst_date_get_type ()))
|
||||
|
||||
/**
|
||||
* GST_TYPE_FOURCC:
|
||||
|
|
Loading…
Reference in a new issue