From c4be9526eb047e37c9ef45e3a7fa6a4b14a1ab5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 15 Feb 2011 22:48:44 +0100 Subject: [PATCH] filesink: Fix escaping of URIs Especially don't escape / as path separators --- plugins/elements/gstfilesink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/elements/gstfilesink.c b/plugins/elements/gstfilesink.c index bcd514f74c..2431c14338 100644 --- a/plugins/elements/gstfilesink.c +++ b/plugins/elements/gstfilesink.c @@ -302,7 +302,7 @@ gst_file_sink_set_location (GstFileSink * sink, const gchar * location) /* we store the filename as we received it from the application. On Windows * this should be in UTF8 */ sink->filename = g_strdup (location); - sink->uri = gst_uri_construct ("file", sink->filename); + sink->uri = g_filename_to_uri (sink->filename, NULL, NULL); } else { sink->filename = NULL; sink->uri = NULL;