project: Expose the ges_project_add_formatter method

This method is useful when implementing a formatter outside
GES that end up converting to xges and uses the default formatter
to finally load the timeline.
This commit is contained in:
Thibault Saunier 2019-02-05 16:08:10 -03:00
parent abb4f005e3
commit d7b0e50b07
2 changed files with 12 additions and 1 deletions

View file

@ -145,7 +145,16 @@ _emit_loaded_in_idle (EmitLoadedInIdle * data)
return FALSE; return FALSE;
} }
static void /**
* ges_project_add_formatter:
* @project: The project to add a formatter to
* @formatter: A formatter used by @project
*
* Adds a formatter as used to load @project
*
* Since: 1.18
*/
void
ges_project_add_formatter (GESProject * project, GESFormatter * formatter) ges_project_add_formatter (GESProject * project, GESFormatter * formatter)
{ {
GESProjectPrivate *priv = GES_PROJECT (project)->priv; GESProjectPrivate *priv = GES_PROJECT (project)->priv;

View file

@ -126,6 +126,8 @@ const GList *ges_project_list_encoding_profiles (GESProject *project);
GES_API GES_API
gboolean ges_add_missing_uri_relocation_uri (const gchar * uri, gboolean ges_add_missing_uri_relocation_uri (const gchar * uri,
gboolean recurse); gboolean recurse);
GES_API
void ges_project_add_formatter (GESProject * project, GESFormatter * formatter);
G_END_DECLS G_END_DECLS