ges-xml-formatter: Use g_filename_to_uri() instead of deprecated gst_uri_construct()

ges-xml-formatter.c: In function ‘_parse_asset’:
ges-xml-formatter.c:357:7: error: ‘gst_uri_construct’ is deprecated: Use 'gst_uri_new' instead [-Werror=deprecated-declarations]
  357 |       id = gst_uri_construct ("file", subproj_data->filename);
      |       ^~
This commit is contained in:
Sebastian Dröge 2019-08-12 17:17:53 +03:00 committed by Sebastian Dröge
parent 5feeb35dba
commit 894df73011

View file

@ -354,7 +354,7 @@ _parse_asset (GMarkupParseContext * context, const gchar * element_name,
}
g_markup_parse_context_get_position (context, &subproj_data->start_line,
&subproj_data->start_char);
id = gst_uri_construct ("file", subproj_data->filename);
id = g_filename_to_uri (subproj_data->filename, NULL, NULL);
G_LOCK (uri_subprojects_map_lock);
g_hash_table_insert (priv->subprojects_map, g_strdup (subproj_data->id),
(gchar *) id);