X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=gst%2Fgstobject.h;h=32c3479ce4244097e48762e6c0e17a8a92562a86;hb=7b359c1d4a6b4ad95e095b3dbad5fbef1574741d;hp=9d77149cb3bc128b255e87e96eaeeb0a6ddfcc8b;hpb=f6f5451caf2e90ef64f9965c1ac32ddd0cbe190c;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstobject.h b/gst/gstobject.h index 9d77149..32c3479 100644 --- a/gst/gstobject.h +++ b/gst/gstobject.h @@ -41,12 +41,16 @@ G_BEGIN_DECLS /** * GstObjectFlags: + * @GST_OBJECT_FLAG_MAY_BE_LEAKED: the object is expected to stay alive even + * after gst_deinit() has been called and so should be ignored by leak + * detection tools. (Since 1.10) * @GST_OBJECT_FLAG_LAST: subclasses can add additional flags starting from this flag * * The standard flags that an gstobject may have. */ typedef enum { + GST_OBJECT_FLAG_MAY_BE_LEAKED = (1 << 0), /* padding */ GST_OBJECT_FLAG_LAST = (1<<4) } GstObjectFlags; @@ -105,14 +109,18 @@ typedef enum * GST_OBJECT_NAME: * @obj: a #GstObject * - * Get the name of this object + * Get the name of this object. This is not thread-safe by default + * (i.e. you will have to make sure the object lock is taken yourself). + * If in doubt use gst_object_get_name() instead. */ #define GST_OBJECT_NAME(obj) (GST_OBJECT_CAST(obj)->name) /** * GST_OBJECT_PARENT: * @obj: a #GstObject * - * Get the parent of this object + * Get the parent of this object. This is not thread-safe by default + * (i.e. you will have to make sure the object lock is taken yourself). + * If in doubt use gst_object_get_parent() instead. */ #define GST_OBJECT_PARENT(obj) (GST_OBJECT_CAST(obj)->parent) @@ -268,6 +276,10 @@ gboolean gst_object_get_g_value_array (GstObject * object, const gch GstClockTime gst_object_get_control_rate (GstObject * object); void gst_object_set_control_rate (GstObject * object, GstClockTime control_rate); +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstObject, gst_object_unref) +#endif + G_END_DECLS #endif /* __GST_OBJECT_H__ */