mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
frei0r: Free type names
This commit is contained in:
parent
32a0af3e54
commit
3aabf06c86
3 changed files with 15 additions and 3 deletions
|
@ -231,6 +231,7 @@ gst_frei0r_filter_register (GstPlugin * plugin, const f0r_plugin_info_t * info,
|
|||
GType type;
|
||||
gchar *type_name, *tmp;
|
||||
GstFrei0rFilterClassData *class_data;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
tmp = g_strdup_printf ("frei0r-filter-%s", info->name);
|
||||
type_name = g_ascii_strdown (tmp, -1);
|
||||
|
@ -254,5 +255,8 @@ gst_frei0r_filter_register (GstPlugin * plugin, const f0r_plugin_info_t * info,
|
|||
|
||||
type =
|
||||
g_type_register_static (GST_TYPE_VIDEO_FILTER, type_name, &typeinfo, 0);
|
||||
return (gst_element_register (plugin, type_name, GST_RANK_NONE, type));
|
||||
ret = gst_element_register (plugin, type_name, GST_RANK_NONE, type);
|
||||
|
||||
g_free (type_name);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -754,6 +754,7 @@ gst_frei0r_mixer_register (GstPlugin * plugin, const f0r_plugin_info_t * info,
|
|||
GType type;
|
||||
gchar *type_name, *tmp;
|
||||
GstFrei0rMixerClassData *class_data;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
if (ftable->update2 == NULL)
|
||||
return FALSE;
|
||||
|
@ -779,5 +780,8 @@ gst_frei0r_mixer_register (GstPlugin * plugin, const f0r_plugin_info_t * info,
|
|||
typeinfo.class_data = class_data;
|
||||
|
||||
type = g_type_register_static (GST_TYPE_ELEMENT, type_name, &typeinfo, 0);
|
||||
return (gst_element_register (plugin, type_name, GST_RANK_NONE, type));
|
||||
ret = gst_element_register (plugin, type_name, GST_RANK_NONE, type);
|
||||
|
||||
g_free (type_name);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -386,6 +386,7 @@ gst_frei0r_src_register (GstPlugin * plugin, const f0r_plugin_info_t * info,
|
|||
GType type;
|
||||
gchar *type_name, *tmp;
|
||||
GstFrei0rSrcClassData *class_data;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
tmp = g_strdup_printf ("frei0r-src-%s", info->name);
|
||||
type_name = g_ascii_strdown (tmp, -1);
|
||||
|
@ -408,5 +409,8 @@ gst_frei0r_src_register (GstPlugin * plugin, const f0r_plugin_info_t * info,
|
|||
typeinfo.class_data = class_data;
|
||||
|
||||
type = g_type_register_static (GST_TYPE_PUSH_SRC, type_name, &typeinfo, 0);
|
||||
return (gst_element_register (plugin, type_name, GST_RANK_NONE, type));
|
||||
ret = gst_element_register (plugin, type_name, GST_RANK_NONE, type);
|
||||
|
||||
g_free (type_name);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue