From 894df730110bbd4ba61c3fbadef16116c9f0fc03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 12 Aug 2019 17:17:53 +0300 Subject: [PATCH] ges-xml-formatter: Use g_filename_to_uri() instead of deprecated gst_uri_construct() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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); | ^~ --- ges/ges-xml-formatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ges/ges-xml-formatter.c b/ges/ges-xml-formatter.c index 1ac074a67f..1a96225d93 100644 --- a/ges/ges-xml-formatter.c +++ b/ges/ges-xml-formatter.c @@ -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);