Index: gstcaps.h
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/gst/gstcaps.h,v
retrieving revision 1.51
diff -u -r1.51 gstcaps.h
--- gstcaps.h	18 May 2003 02:42:19 -0000	1.51
+++ gstcaps.h	30 Jun 2003 21:58:44 -0000
@@ -166,9 +166,24 @@
 #define		gst_caps_get_boolean(caps,name,res)	gst_props_entry_get_boolean(gst_props_get_entry((caps)->properties,name),res)
 #define		gst_caps_get_string(caps,name,res)	gst_props_entry_get_string(gst_props_get_entry((caps)->properties,name),res)
 
-#define		gst_caps_has_property(caps, name)	gst_props_has_property ((caps)->properties, name)
-#define		gst_caps_has_property_typed(caps, name, type)	gst_props_has_property_typed ((caps)->properties, name, type)
-#define		gst_caps_has_fixed_property(caps, name)	gst_props_has_fixed_property ((caps)->properties, name)
+static inline gboolean
+gst_caps_has_property (GstCaps *caps, const gchar *name)
+{
+  return (caps->properties != NULL &&
+	  gst_props_has_property (caps->properties, name));
+}
+static inline gboolean
+gst_caps_has_property_typed (GstCaps *caps, const gchar *name, GstPropsEntryType type)
+{
+  return (caps->properties != NULL &&
+	  gst_props_has_property_typed (caps->properties, name, type));
+}
+static inline gboolean
+gst_caps_has_property_fixed (GstCaps *caps, const gchar *name)
+{
+  return (caps->properties != NULL &&
+	  gst_props_has_fixed_property (caps->properties, name));
+}
 
 GstCaps*	gst_caps_get_by_name			(GstCaps *caps, const gchar *name);
 
