mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Make GST_PROPS_PROPERTIES return NULL when props is NULL. This allows
Original commit message from CVS: Make GST_PROPS_PROPERTIES return NULL when props is NULL. This allows GST_PROPS_PROPERTIES (gst_caps_get_props (caps)) even if the caps have no props.
This commit is contained in:
parent
27b0ea3990
commit
87945fb3a8
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ typedef enum {
|
|||
#define GST_PROPS_FLAG_UNSET(props,flag) (GST_PROPS_FLAGS (props) &= ~(flag))
|
||||
|
||||
#define GST_PROPS_REFCOUNT(props) ((props)->refcount)
|
||||
#define GST_PROPS_PROPERTIES(props) ((props)->properties)
|
||||
#define GST_PROPS_PROPERTIES(props) ((props) ? ((props)->properties) : NULL)
|
||||
|
||||
#define GST_PROPS_IS_FIXED(props) (GST_PROPS_FLAG_IS_SET ((props), GST_PROPS_FIXED))
|
||||
#define GST_PROPS_IS_FLOATING(props) (GST_PROPS_FLAG_IS_SET ((props), GST_PROPS_FLOATING))
|
||||
|
|
Loading…
Reference in a new issue