mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
capsfeatures: Make sure that the static ANY/EMPTY capsfeatures are never mutable
See https://bugzilla.gnome.org/show_bug.cgi?id=723236
This commit is contained in:
parent
f6d638153c
commit
23434848d3
1 changed files with 6 additions and 0 deletions
|
@ -66,6 +66,7 @@ struct _GstCapsFeatures
|
||||||
};
|
};
|
||||||
|
|
||||||
GType _gst_caps_features_type = 0;
|
GType _gst_caps_features_type = 0;
|
||||||
|
static gint static_caps_features_parent_refcount = G_MAXINT;
|
||||||
GstCapsFeatures *_gst_caps_features_any = NULL;
|
GstCapsFeatures *_gst_caps_features_any = NULL;
|
||||||
GstCapsFeatures *_gst_caps_features_memory_system_memory = NULL;
|
GstCapsFeatures *_gst_caps_features_memory_system_memory = NULL;
|
||||||
static GQuark _gst_caps_feature_memory_system_memory = 0;
|
static GQuark _gst_caps_feature_memory_system_memory = 0;
|
||||||
|
@ -95,8 +96,13 @@ _priv_gst_caps_features_initialize (void)
|
||||||
gst_caps_features_transform_to_string);
|
gst_caps_features_transform_to_string);
|
||||||
|
|
||||||
_gst_caps_features_any = gst_caps_features_new_any ();
|
_gst_caps_features_any = gst_caps_features_new_any ();
|
||||||
|
gst_caps_features_set_parent_refcount (_gst_caps_features_any,
|
||||||
|
&static_caps_features_parent_refcount);
|
||||||
_gst_caps_features_memory_system_memory =
|
_gst_caps_features_memory_system_memory =
|
||||||
gst_caps_features_new_id (_gst_caps_feature_memory_system_memory, 0);
|
gst_caps_features_new_id (_gst_caps_feature_memory_system_memory, 0);
|
||||||
|
gst_caps_features_set_parent_refcount
|
||||||
|
(_gst_caps_features_memory_system_memory,
|
||||||
|
&static_caps_features_parent_refcount);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
|
Loading…
Reference in a new issue