mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-21 22:58:16 +00:00
(mini)object: add MAY_BE_LEAKED flag
https://bugzilla.gnome.org/show_bug.cgi?id=766008
This commit is contained in:
parent
ef1444cfe4
commit
56ee365077
2 changed files with 8 additions and 0 deletions
|
@ -124,6 +124,9 @@ typedef void (*GstMiniObjectNotify) (gpointer user_data, GstMiniObject * obj);
|
|||
* gst_mini_object_lock() and gst_mini_object_unlock().
|
||||
* @GST_MINI_OBJECT_FLAG_LOCK_READONLY: the object is permanently locked in
|
||||
* READONLY mode. Only read locks can be performed on the object.
|
||||
* @GST_MINI_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_MINI_OBJECT_FLAG_LAST: first flag that can be used by subclasses.
|
||||
*
|
||||
* Flags for the mini object
|
||||
|
@ -132,6 +135,7 @@ typedef enum
|
|||
{
|
||||
GST_MINI_OBJECT_FLAG_LOCKABLE = (1 << 0),
|
||||
GST_MINI_OBJECT_FLAG_LOCK_READONLY = (1 << 1),
|
||||
GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED = (1 << 2),
|
||||
/* padding */
|
||||
GST_MINI_OBJECT_FLAG_LAST = (1 << 4)
|
||||
} GstMiniObjectFlags;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue