ges_meta_container_register_meta_string (container, GES_META_READ_WRITE,
GES_META_FORMAT_VERSION, NULL);
+ g_clear_pointer (&fclass->name, g_free);
+ g_clear_pointer (&fclass->description, g_free);
+ g_clear_pointer (&fclass->extension, g_free);
+ g_clear_pointer (&fclass->mimetype, g_free);
+
return TRUE;
}
klass->save_to_uri = NULL;
/* We set dummy metas */
- klass->name = "base-formatter";
- klass->extension = "noextension";
- klass->description = "Formatter base class, you should give"
- " a name to your formatter";
- klass->mimetype = "No mimetype";
+ klass->name = g_strdup ("base-formatter");
+ klass->extension = g_strdup ("noextension");
+ klass->description = g_strdup ("Formatter base class, you should give"
+ " a name to your formatter");
+ klass->mimetype = g_strdup ("No mimetype");
klass->version = 0.0;
klass->rank = GST_RANK_NONE;
}
void
ges_formatter_class_register_metas (GESFormatterClass * class,
- const gchar * name, const gchar * description, const gchar * extension,
+ const gchar * name, const gchar * description, const gchar * extensions,
const gchar * mimetype, gdouble version, GstRank rank)
{
- class->name = name;
- class->description = description;
- class->extension = extension;
- class->mimetype = mimetype;
+ class->name = g_strdup (name);
+ class->description = g_strdup (description);
+ class->extension = g_strdup (extensions);
+ class->mimetype = g_strdup (mimetype);
class->version = version;
class->rank = rank;
GESFormatterSaveToURIMethod save_to_uri;
/* < private > */
- const gchar *name;
- const gchar *description;
- const gchar *extension;
- const gchar *mimetype;
+ gchar *name;
+ gchar *description;
+ gchar *extension;
+ gchar *mimetype;
gdouble version;
GstRank rank;
void ges_formatter_class_register_metas (GESFormatterClass * klass,
const gchar *name,
const gchar *description,
- const gchar *extension,
+ const gchar *extensions,
const gchar *mimetype,
gdouble version,
GstRank rank);