mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
caps: cleanups
We don't need to check if the type is 0, the init function is only called once in the beginning.
This commit is contained in:
parent
0bfbce4463
commit
e2452c8c78
1 changed files with 3 additions and 5 deletions
|
@ -113,13 +113,11 @@ GType _gst_caps_type = 0;
|
|||
void
|
||||
_gst_caps_initialize (void)
|
||||
{
|
||||
if (G_LIKELY (_gst_caps_type == 0)) {
|
||||
_gst_caps_type = gst_mini_object_register ("GstCaps");
|
||||
|
||||
g_value_register_transform_func (_gst_caps_type,
|
||||
G_TYPE_STRING, gst_caps_transform_to_string);
|
||||
}
|
||||
}
|
||||
|
||||
static GstCaps *
|
||||
_gst_caps_copy (const GstCaps * caps)
|
||||
|
|
Loading…
Reference in a new issue