mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
caps: add cleanup priv function
Those are allocated in _priv_gst_caps_initialize() so it makes sense to have a symetric cleanup functions called by gst_deinit(). https://bugzilla.gnome.org/show_bug.cgi?id=765606
This commit is contained in:
parent
21a2b26bb2
commit
8daad351a4
3 changed files with 11 additions and 0 deletions
|
@ -992,6 +992,7 @@ gst_deinit (void)
|
||||||
_priv_gst_registry_cleanup ();
|
_priv_gst_registry_cleanup ();
|
||||||
_priv_gst_allocator_cleanup ();
|
_priv_gst_allocator_cleanup ();
|
||||||
_priv_gst_caps_features_cleanup ();
|
_priv_gst_caps_features_cleanup ();
|
||||||
|
_priv_gst_caps_cleanup ();
|
||||||
|
|
||||||
#ifndef GST_DISABLE_TRACE
|
#ifndef GST_DISABLE_TRACE
|
||||||
_priv_gst_alloc_trace_deinit ();
|
_priv_gst_alloc_trace_deinit ();
|
||||||
|
|
|
@ -130,6 +130,7 @@ G_GNUC_INTERNAL void _priv_gst_date_time_initialize (void);
|
||||||
/* cleanup functions called from gst_deinit(). */
|
/* cleanup functions called from gst_deinit(). */
|
||||||
G_GNUC_INTERNAL void _priv_gst_allocator_cleanup (void);
|
G_GNUC_INTERNAL void _priv_gst_allocator_cleanup (void);
|
||||||
G_GNUC_INTERNAL void _priv_gst_caps_features_cleanup (void);
|
G_GNUC_INTERNAL void _priv_gst_caps_features_cleanup (void);
|
||||||
|
G_GNUC_INTERNAL void _priv_gst_caps_cleanup (void);
|
||||||
|
|
||||||
/* Private registry functions */
|
/* Private registry functions */
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
|
|
|
@ -145,6 +145,15 @@ _priv_gst_caps_initialize (void)
|
||||||
G_TYPE_STRING, gst_caps_transform_to_string);
|
G_TYPE_STRING, gst_caps_transform_to_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_priv_gst_caps_cleanup (void)
|
||||||
|
{
|
||||||
|
gst_caps_unref (_gst_caps_any);
|
||||||
|
_gst_caps_any = NULL;
|
||||||
|
gst_caps_unref (_gst_caps_none);
|
||||||
|
_gst_caps_none = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
GstCapsFeatures *
|
GstCapsFeatures *
|
||||||
__gst_caps_get_features_unchecked (const GstCaps * caps, guint idx)
|
__gst_caps_get_features_unchecked (const GstCaps * caps, guint idx)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue